From b00ba83370e5d5f820ed72a1941480499830f9fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 8 Jun 2024 14:16:07 +0200 Subject: [PATCH] dart analyze --- flutter/Makefile | 3 +++ flutter/lib/api/api_client.dart | 1 - flutter/lib/main.dart | 2 +- flutter/lib/nav_layout.dart | 1 - flutter/lib/pages/debug/debug_actions.dart | 1 - flutter/lib/pages/message_view/message_view.dart | 2 -- 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/flutter/Makefile b/flutter/Makefile index 66e2883..e2abffc 100644 --- a/flutter/Makefile +++ b/flutter/Makefile @@ -7,6 +7,9 @@ run: test: dart analyze +fix: + dart fix --apply + gen: dart run build_runner build diff --git a/flutter/lib/api/api_client.dart b/flutter/lib/api/api_client.dart index acabe3f..18fe726 100644 --- a/flutter/lib/api/api_client.dart +++ b/flutter/lib/api/api_client.dart @@ -7,7 +7,6 @@ import 'package:simplecloudnotifier/models/client.dart'; import 'package:simplecloudnotifier/models/keytoken.dart'; import 'package:simplecloudnotifier/models/subscription.dart'; import 'package:simplecloudnotifier/models/user.dart'; -import 'package:simplecloudnotifier/state/app_auth.dart'; import 'package:simplecloudnotifier/state/application_log.dart'; import 'package:simplecloudnotifier/state/globals.dart'; import 'package:simplecloudnotifier/state/request_log.dart'; diff --git a/flutter/lib/main.dart b/flutter/lib/main.dart index 764e6ee..497fb8e 100644 --- a/flutter/lib/main.dart +++ b/flutter/lib/main.dart @@ -138,7 +138,7 @@ void setFirebaseToken(String fcmToken) async { return; } - if (oldToken != null && oldToken == fcmToken && client != null && client!.fcmToken == fcmToken) { + if (oldToken != null && oldToken == fcmToken && client != null && client.fcmToken == fcmToken) { ApplicationLog.info('Firebase token unchanged - do nothing', additional: 'Token: $fcmToken'); return; } diff --git a/flutter/lib/nav_layout.dart b/flutter/lib/nav_layout.dart index dbd9c93..f3de1ae 100644 --- a/flutter/lib/nav_layout.dart +++ b/flutter/lib/nav_layout.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:flutter_lazy_indexed_stack/flutter_lazy_indexed_stack.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:provider/provider.dart'; import 'package:simplecloudnotifier/components/hidable_fab/hidable_fab.dart'; diff --git a/flutter/lib/pages/debug/debug_actions.dart b/flutter/lib/pages/debug/debug_actions.dart index 281a4dc..79d0937 100644 --- a/flutter/lib/pages/debug/debug_actions.dart +++ b/flutter/lib/pages/debug/debug_actions.dart @@ -1,7 +1,6 @@ import 'package:flutter/material.dart'; import 'package:simplecloudnotifier/utils/toaster.dart'; import 'package:simplecloudnotifier/utils/ui.dart'; -import 'package:toastification/toastification.dart'; class DebugActionsPage extends StatefulWidget { @override diff --git a/flutter/lib/pages/message_view/message_view.dart b/flutter/lib/pages/message_view/message_view.dart index 92becc7..742671b 100644 --- a/flutter/lib/pages/message_view/message_view.dart +++ b/flutter/lib/pages/message_view/message_view.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:intl/intl.dart'; import 'package:provider/provider.dart'; @@ -10,7 +9,6 @@ import 'package:simplecloudnotifier/models/api_error.dart'; import 'package:simplecloudnotifier/models/channel.dart'; import 'package:simplecloudnotifier/models/keytoken.dart'; import 'package:simplecloudnotifier/models/message.dart'; -import 'package:simplecloudnotifier/models/user.dart'; import 'package:simplecloudnotifier/state/app_auth.dart'; import 'package:simplecloudnotifier/utils/ui.dart';