@@ -19,10 +19,7 @@ class LibraryVersionView extends ConsumerWidget {
1919 Widget build (BuildContext context, WidgetRef ref) {
2020 // Single source of truth for byedpi presence: the build flavor flag, never
2121 // native reflection. A non-byedpi build shows zero byedpi here, period.
22- final labels = [
23- kLibMihomo,
24- if (kByeDpiEnabled) kLibByedpi,
25- ];
22+ final labels = [kLibMihomo, if (kByeDpiEnabled) kLibByedpi];
2623 return BaseScaffold (
2724 title: Intl .message ('Library version' , name: 'libraryVersion' ),
2825 actions: [
@@ -38,9 +35,7 @@ class LibraryVersionView extends ConsumerWidget {
3835 ],
3936 body: ListView (
4037 padding: const EdgeInsets .only (bottom: 24 ),
41- children: [
42- for (final label in labels) _CoreSection (label: label),
43- ],
38+ children: [for (final label in labels) _CoreSection (label: label)],
4439 ),
4540 );
4641 }
@@ -65,7 +60,9 @@ class _CoreSectionState extends ConsumerState<_CoreSection> {
6560 await action ();
6661 } catch (e) {
6762 if (mounted) {
68- ScaffoldMessenger .of (context).showSnackBar (SnackBar (content: Text ('$e ' )));
63+ ScaffoldMessenger .of (
64+ context,
65+ ).showSnackBar (SnackBar (content: Text ('$e ' )));
6966 }
7067 } finally {
7168 if (mounted) setState (() => _busy.remove (key));
@@ -90,7 +87,8 @@ class _CoreSectionState extends ConsumerState<_CoreSection> {
9087 final label = widget.label;
9188 final expected = ref.watch (libraryExpectedAbiProvider).value ?? const {};
9289 final deviceAbi = ref.watch (libraryDeviceAbiProvider).value ?? '' ;
93- final active = (ref.watch (activeLibraryDirsProvider).value ?? const {})[label];
90+ final active =
91+ (ref.watch (activeLibraryDirsProvider).value ?? const {})[label];
9492 final installed = (ref.watch (installedLibrariesProvider).value ?? const [])
9593 .where ((e) => e.label == label)
9694 .toList ();
@@ -153,7 +151,9 @@ class _CoreSectionState extends ConsumerState<_CoreSection> {
153151 ),
154152 error: (e, _) => ListTile (
155153 leading: const Icon (Icons .error_outline),
156- title: Text (Intl .message ('Failed to load releases' , name: 'libLoadError' )),
154+ title: Text (
155+ Intl .message ('Failed to load releases' , name: 'libLoadError' ),
156+ ),
157157 subtitle: Text ('$e ' ),
158158 ),
159159 data: (releases) => Column (
@@ -203,7 +203,8 @@ class _CoreSectionState extends ConsumerState<_CoreSection> {
203203 tooltip: Intl .message ('Delete' , name: 'libDelete' ),
204204 onPressed: _busy.isNotEmpty
205205 ? null
206- : () => _guard ('del-${lib .version }' , () => controller.delete (lib)),
206+ : () =>
207+ _guard ('del-${lib .version }' , () => controller.delete (lib)),
207208 ),
208209 ],
209210 );
0 commit comments