更新UI,修复无法搜索模组问题,增加了爱发电窗口
This commit is contained in:
1 parent
e32125aa8e
commit
06445710da
24 files changed
+1093
-106
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import 'dart:async';
|
||||
import 'package:flutter/material.dart';
|
||||
import '../l10n/strings.dart';
|
||||
import 'z_widgets.dart';
|
||||
|
||||
class UserAgreementDialog extends StatefulWidget {
|
||||
final VoidCallback onAgree;
|
||||
@@ -178,23 +179,11 @@ class _UserAgreementDialogState extends State<UserAgreementDialog> {
|
||||
: null,
|
||||
child: Row(
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 24,
|
||||
height: 24,
|
||||
child: Checkbox(
|
||||
value: _isChecked,
|
||||
onChanged: (_countdown <= 0 && _readToEnd)
|
||||
? (value) {
|
||||
setState(() {
|
||||
_isChecked = value ?? false;
|
||||
});
|
||||
}
|
||||
: null,
|
||||
activeColor: const Color(0xFF28A745),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
),
|
||||
),
|
||||
ZSwitch(
|
||||
value: _isChecked,
|
||||
size: 34,
|
||||
enabled: _countdown <= 0 && _readToEnd,
|
||||
onChanged: (v) => setState(() => _isChecked = v),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
|
||||
Reference in new issue
Block a user