re-add trailing commas
This commit is contained in:
@@ -22,7 +22,7 @@ class AppInitializationService extends _$AppInitializationService {
|
||||
initialized: false,
|
||||
stage: 'Loading Package Info...',
|
||||
errors: List.empty(),
|
||||
));
|
||||
),);
|
||||
|
||||
return ref.read(packageInfoProvider.future);
|
||||
}
|
||||
@@ -32,7 +32,7 @@ class AppInitializationService extends _$AppInitializationService {
|
||||
initialized: false,
|
||||
stage: 'Synchronizing Bangs...',
|
||||
errors: List.empty(),
|
||||
));
|
||||
),);
|
||||
|
||||
return ref
|
||||
.read(bangSyncRepositoryProvider.notifier)
|
||||
@@ -61,6 +61,6 @@ class AppInitializationService extends _$AppInitializationService {
|
||||
initialized: false,
|
||||
stage: null,
|
||||
errors: List.empty(),
|
||||
));
|
||||
),);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -204,7 +204,7 @@ class GenericWebsiteService extends _$GenericWebsiteService {
|
||||
'title': title,
|
||||
'resources': resources.map(_serializeResource).toList(),
|
||||
};
|
||||
}, [response.body, url.toString()]);
|
||||
}, [response.body, url.toString()],);
|
||||
|
||||
final resources =
|
||||
(result['resources']! as List<Map<String, dynamic>>)
|
||||
@@ -220,7 +220,7 @@ class GenericWebsiteService extends _$GenericWebsiteService {
|
||||
title: result['title'] as String?,
|
||||
favicon: favicon,
|
||||
);
|
||||
}, exceptionHandler: handleHttpError);
|
||||
}, exceptionHandler: handleHttpError,);
|
||||
}
|
||||
|
||||
Future<BrowserIcon?> getCachedIcon(Uri url) async {
|
||||
|
||||
@@ -35,6 +35,6 @@ class BangSourceService extends _$BangSourceService {
|
||||
return bang;
|
||||
}).toList(),
|
||||
);
|
||||
}, exceptionHandler: handleHttpError);
|
||||
}, exceptionHandler: handleHttpError,);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ EquatableCollection<Map<String, TabState>> availableTabStates(
|
||||
return EquatableCollection({
|
||||
for (final tabId in availableTabs.collection)
|
||||
if (tabStates.containsKey(tabId)) tabId: tabStates[tabId]!,
|
||||
}, immutable: true);
|
||||
}, immutable: true,);
|
||||
}
|
||||
|
||||
@Riverpod()
|
||||
|
||||
+1
-1
@@ -261,7 +261,7 @@ class WebPageDialog extends HookConsumerWidget {
|
||||
|
||||
await Share.shareXFiles([
|
||||
file,
|
||||
], subject: precachedInfo?.title);
|
||||
], subject: precachedInfo?.title,);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ class CreateTabSheetWidget extends HookConsumerWidget {
|
||||
onActiveToolChanged?.call(KagiTool.values[initialIndex]);
|
||||
});
|
||||
return null;
|
||||
}, [initialIndex]);
|
||||
}, [initialIndex],);
|
||||
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
|
||||
+2
-2
@@ -294,7 +294,7 @@ class ViewTabsSheetWidget extends HookConsumerWidget {
|
||||
}
|
||||
|
||||
return null;
|
||||
}, [filteredTabIds, activeTab]);
|
||||
}, [filteredTabIds, activeTab],);
|
||||
|
||||
final tabs = useMemoized(() {
|
||||
return filteredTabIds.collection
|
||||
@@ -346,7 +346,7 @@ class ViewTabsSheetWidget extends HookConsumerWidget {
|
||||
),
|
||||
)
|
||||
.toList();
|
||||
}, [filteredTabIds, activeTab]);
|
||||
}, [filteredTabIds, activeTab],);
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 4.0),
|
||||
|
||||
@@ -64,7 +64,7 @@ class ContainerEditScreen extends HookConsumerWidget {
|
||||
title: Text(switch (_mode) {
|
||||
_DialogMode.create => 'New Container',
|
||||
_DialogMode.edit => 'Edit Container',
|
||||
}),
|
||||
},),
|
||||
actions: [
|
||||
IconButton(
|
||||
onPressed: () async {
|
||||
|
||||
@@ -33,6 +33,6 @@ class KagiAutosuggestService extends _$KagiAutosuggestService
|
||||
final List resultList => resultList.cast(),
|
||||
_ => [],
|
||||
};
|
||||
}, exceptionHandler: handleHttpError);
|
||||
}, exceptionHandler: handleHttpError,);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ class SummarizeTab extends HookConsumerWidget {
|
||||
|
||||
textController.addListener(debounce);
|
||||
return () => textController.removeListener(debounce);
|
||||
}, [textController]);
|
||||
}, [textController],);
|
||||
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
|
||||
@@ -198,7 +198,7 @@ final class PrefixQueryBuilder extends FtsQueryBuilder {
|
||||
}
|
||||
|
||||
return 'NEAR(${phrase.map((bareword) => '$bareword*').join(' ')})';
|
||||
}, ' OR ');
|
||||
}, ' OR ',);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,5 +9,5 @@ void useListenableCallback(
|
||||
useEffect(() {
|
||||
listenable?.addListener(callback);
|
||||
return () => listenable?.removeListener(callback);
|
||||
}, keys ?? [listenable]);
|
||||
}, keys ?? [listenable],);
|
||||
}
|
||||
|
||||
@@ -4,5 +4,5 @@ import 'package:flutter_hooks/flutter_hooks.dart';
|
||||
void useOnDispose(VoidCallback onDispose) {
|
||||
useEffect(() {
|
||||
return onDispose;
|
||||
}, const []);
|
||||
}, const [],);
|
||||
}
|
||||
|
||||
@@ -6,5 +6,5 @@ void useOnInitialization(FutureOr<void> Function() callback) {
|
||||
useEffect(() {
|
||||
Future.microtask(callback);
|
||||
return null;
|
||||
}, []);
|
||||
}, [],);
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@ void useSyncPageWithTab(
|
||||
tabController.removeListener(syncPage);
|
||||
pageController.removeListener(syncTab);
|
||||
};
|
||||
}, [tabController, pageController]);
|
||||
}, [tabController, pageController],);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user