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 lastCheck = appdata.implicitData['lastCheckUpdate'] ?? 0;
var now = DateTime.now().millisecondsSinceEpoch; var now = DateTime.now().millisecondsSinceEpoch;
if(now - lastCheck < 24 * 60 * 60 * 1000) { if(now - lastCheck < 24 * 60 * 60 * 1000) {
// return; return;
} }
appdata.implicitData['lastCheckUpdate'] = now; appdata.implicitData['lastCheckUpdate'] = now;
appdata.writeImplicitData(); appdata.writeImplicitData();

View File

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

View File

@@ -499,9 +499,11 @@ packages:
lodepng_flutter: lodepng_flutter:
dependency: "direct main" dependency: "direct main"
description: description:
path: "C:\\Users\\wgh19\\IdeaProjects\\lodepng_flutter" path: "."
relative: false ref: HEAD
source: path resolved-ref: c9584f890f54c26b98ca4f465a2346024a528b31
url: "https://github.com/venera-app/lodepng_flutter"
source: git
version: "0.0.1" version: "0.0.1"
matcher: matcher:
dependency: transitive dependency: transitive