updated project linter-rules and enforced them

This commit is contained in:
2024-03-29 18:22:55 +01:00
parent 21e11b6c2a
commit 75846750f7
113 changed files with 553 additions and 554 deletions

View File

@ -39,14 +39,14 @@ class _AppState extends State<App> with WidgetsBindingObserver {
@override
void didChangeAppLifecycleState(AppLifecycleState state) {
log("AppLifecycle: ${state.toString()}");
log('AppLifecycle: ${state.toString()}');
if(state == AppLifecycleState.resumed) {
EasyThrottle.throttle(
"appLifecycleState",
'appLifecycleState',
const Duration(seconds: 10),
() {
log("Refreshing due to LifecycleChange");
log('Refreshing due to LifecycleChange');
NotificationTasks.updateProviders(context);
Provider.of<TimetableProps>(context, listen: false).run();
}
@ -106,7 +106,7 @@ class _AppState extends State<App> with WidgetsBindingObserver {
activeForegroundColor: Theme.of(context).primaryColor,
inactiveForegroundColor: Theme.of(context).colorScheme.secondary,
icon: const Icon(Icons.calendar_month),
title: "Vertretung"
title: 'Vertretung'
),
),
PersistentTabConfig(
@ -127,12 +127,12 @@ class _AppState extends State<App> with WidgetsBindingObserver {
badgeColor: Theme.of(context).primaryColor,
elevation: 1,
),
badgeContent: Text("$messages", style: const TextStyle(color: Colors.white, fontSize: 10, fontWeight: FontWeight.bold)),
badgeContent: Text('$messages', style: const TextStyle(color: Colors.white, fontSize: 10, fontWeight: FontWeight.bold)),
child: const Icon(Icons.chat),
);
},
),
title: "Talk",
title: 'Talk',
),
),
PersistentTabConfig(
@ -141,7 +141,7 @@ class _AppState extends State<App> with WidgetsBindingObserver {
activeForegroundColor: Theme.of(context).primaryColor,
inactiveForegroundColor: Theme.of(context).colorScheme.secondary,
icon: const Icon(Icons.folder),
title: "Dateien"
title: 'Dateien'
),
),
PersistentTabConfig(
@ -150,7 +150,7 @@ class _AppState extends State<App> with WidgetsBindingObserver {
activeForegroundColor: Theme.of(context).primaryColor,
inactiveForegroundColor: Theme.of(context).colorScheme.secondary,
icon: const Icon(Icons.apps),
title: "Mehr"
title: 'Mehr'
),
),
],