improve ui

This commit is contained in:
2024-11-05 16:50:32 +08:00
parent b09e2e6f12
commit a6608b6fa2
3 changed files with 8 additions and 6 deletions

View File

@@ -178,7 +178,7 @@ class _MyAppState extends State<MyApp> {
var lastCheck = appdata.implicitData['lastCheckUpdate'] ?? 0;
var now = DateTime.now().millisecondsSinceEpoch;
if(now - lastCheck < 24 * 60 * 60 * 1000) {
// return;
return;
}
appdata.implicitData['lastCheckUpdate'] = now;
appdata.writeImplicitData();

View File

@@ -454,10 +454,10 @@ class _ComicSourceListState extends State<_ComicSourceList> {
itemBuilder: (context, index) {
var key = json![index]["key"];
var action = currentKey.contains(key)
? const Icon(Icons.check, size: 22).paddingRight(8)
? const Icon(Icons.check, size: 20).paddingRight(8)
: Tooltip(
message: "Add",
child: IconButton(
child: Button.icon(
color: context.colorScheme.primary,
icon: const Icon(Icons.add),
onPressed: () async {