diff --git a/lib/data/model/pkg/manager.dart b/lib/data/model/pkg/manager.dart index c8a374e11..bf2bd2784 100644 --- a/lib/data/model/pkg/manager.dart +++ b/lib/data/model/pkg/manager.dart @@ -22,8 +22,6 @@ enum PkgManager { return 'opkg list-upgradable'; case PkgManager.apk: return 'apk list --upgradable'; - default: - return null; } } @@ -56,8 +54,6 @@ enum PkgManager { return 'opkg upgrade $args'; case PkgManager.apk: return 'apk upgrade'; - default: - return null; } } diff --git a/lib/data/model/server/disk.dart b/lib/data/model/server/disk.dart index 77b31f547..c79ec0747 100644 --- a/lib/data/model/server/disk.dart +++ b/lib/data/model/server/disk.dart @@ -104,7 +104,9 @@ class DiskIO extends TimeSeq> { !item.dev.startsWith('vd') && !item.dev.startsWith('hd') && !item.dev.startsWith('mmcblk') && - !item.dev.startsWith('sr')) continue; + !item.dev.startsWith('sr')) { + continue; + } final (read_, write_) = _getSpeed(item.dev); read += read_ ?? 0; write += write_ ?? 0; diff --git a/lib/data/model/sftp/worker.dart b/lib/data/model/sftp/worker.dart index 6deec3a0b..c28c8eb04 100644 --- a/lib/data/model/sftp/worker.dart +++ b/lib/data/model/sftp/worker.dart @@ -60,8 +60,6 @@ Future isolateMessageHandler( case SftpReqType.upload: await _upload(data, mainSendPort, sendError); break; - default: - sendError(Exception('unknown type')); } break; default: diff --git a/lib/view/page/server/tab.dart b/lib/view/page/server/tab.dart index 818e1effe..752d920a6 100644 --- a/lib/view/page/server/tab.dart +++ b/lib/view/page/server/tab.dart @@ -515,10 +515,6 @@ class _ServerPageState extends State const Icon(MingCute.unlink_2_line, size: 17, color: Colors.grey), () => ServerProvider.closeServer(id: s.spi.id), ), - _ when Stores.setting.serverTabUseOldUI.fetch() => ( - ServerFuncBtnsTopRight(spi: s.spi), - null, - ), }; // Or the loading icon will be rescaled. diff --git a/lib/view/page/setting/entry.dart b/lib/view/page/setting/entry.dart index 6e0b4fd01..df5464e93 100644 --- a/lib/view/page/setting/entry.dart +++ b/lib/view/page/setting/entry.dart @@ -424,7 +424,7 @@ final class _AppSettingsPageState extends State { return; } UIs.colorSeed = color; - _setting.colorSeed.put(color.value); + _setting.colorSeed.put(color.value255); context.pop(); Future.delayed(Durations.medium1, RNodes.app.notify); } diff --git a/lib/view/page/systemd.dart b/lib/view/page/systemd.dart index 0dbcdb204..f49636518 100644 --- a/lib/view/page/systemd.dart +++ b/lib/view/page/systemd.dart @@ -158,7 +158,7 @@ final class _SystemdPageState extends State { Widget _buildTag(String tag, [Color? color, bool noPad = false]) { return Container( decoration: BoxDecoration( - color: color?.withOpacity(0.7) ?? UIs.halfAlpha, + color: color?.withValues(alpha: 0.7) ?? UIs.halfAlpha, borderRadius: BorderRadius.circular(5), ), child: Text(tag, style: UIs.text11) diff --git a/pubspec.lock b/pubspec.lock index 0fe02265c..00e15eeb0 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,23 +5,23 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 + sha256: "16e298750b6d0af7ce8a3ba7c18c69c3785d11b15ec83f6dcd0ad2a0009b3cab" url: "https://pub.dev" source: hosted - version: "72.0.0" + version: "76.0.0" _macros: dependency: transitive description: dart source: sdk - version: "0.3.2" + version: "0.3.3" analyzer: dependency: transitive description: name: analyzer - sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 + sha256: "1f14db053a8c23e260789e9b0980fa27f2680dd640932cae5e1137cce0e46e1e" url: "https://pub.dev" source: hosted - version: "6.7.0" + version: "6.11.0" ansicolor: dependency: transitive description: @@ -283,10 +283,10 @@ packages: dependency: transitive description: name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.19.0" computer: dependency: "direct main" description: @@ -478,8 +478,8 @@ packages: dependency: "direct main" description: path: "." - ref: "v1.0.221" - resolved-ref: a0dc0032eaafb596a7886fca1237f404b2c1b1a8 + ref: "v1.0.222" + resolved-ref: "9dff8e67cb57138961698750ef1a938fbdfbc028" url: "https://github.com/lppcg/fl_lib" source: git version: "0.0.1" @@ -755,18 +755,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" + sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06" url: "https://pub.dev" source: hosted - version: "10.0.5" + version: "10.0.7" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" + sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379" url: "https://pub.dev" source: hosted - version: "3.0.5" + version: "3.0.8" leak_tracker_testing: dependency: transitive description: @@ -851,10 +851,10 @@ packages: dependency: transitive description: name: macros - sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" + sha256: "1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656" url: "https://pub.dev" source: hosted - version: "0.1.2-main.4" + version: "0.1.3-main.0" markdown: dependency: transitive description: @@ -1212,7 +1212,7 @@ packages: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" source_gen: dependency: transitive description: @@ -1249,10 +1249,10 @@ packages: dependency: transitive description: name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377" url: "https://pub.dev" source: hosted - version: "1.11.1" + version: "1.12.0" stream_channel: dependency: transitive description: @@ -1273,10 +1273,10 @@ packages: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.3.0" term_glyph: dependency: transitive description: @@ -1289,10 +1289,10 @@ packages: dependency: transitive description: name: test_api - sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" + sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c" url: "https://pub.dev" source: hosted - version: "0.7.2" + version: "0.7.3" timing: dependency: transitive description: @@ -1441,10 +1441,10 @@ packages: dependency: transitive description: name: vm_service - sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" + sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b url: "https://pub.dev" source: hosted - version: "14.2.5" + version: "14.3.0" wake_on_lan: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 67deb344e..dc2af6b31 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -60,7 +60,7 @@ dependencies: fl_lib: git: url: https://github.com/lppcg/fl_lib - ref: v1.0.221 + ref: v1.0.222 dependency_overrides: # dartssh2: