diff --git a/app/android/app/build.gradle b/app/android/app/build.gradle index f3570152..79ec3877 100644 --- a/app/android/app/build.gradle +++ b/app/android/app/build.gradle @@ -8,7 +8,7 @@ if (localPropertiesFile.exists()) { def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") + throw new Exception("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") } def flutterVersionCode = localProperties.getProperty('flutter.versionCode') diff --git a/app/lib/common/widgets/pharme_logo_page.dart b/app/lib/common/widgets/pharme_logo_page.dart index fc46a728..44595806 100644 --- a/app/lib/common/widgets/pharme_logo_page.dart +++ b/app/lib/common/widgets/pharme_logo_page.dart @@ -2,9 +2,9 @@ import '../module.dart'; class PharMeLogoPage extends StatelessWidget { const PharMeLogoPage({ - Key? key, + super.key, this.child, - }) : super(key: key); + }); final Widget? child; diff --git a/app/lib/more/module.dart b/app/lib/more/module.dart index a18bcc3d..f67aa621 100644 --- a/app/lib/more/module.dart +++ b/app/lib/more/module.dart @@ -6,7 +6,7 @@ export 'pages/more.dart'; export 'pages/privacy.dart'; export 'pages/terms.dart'; -@RoutePage() +@RoutePage() class MoreRootPage extends AutoRouter {} AutoRoute aboutRoute() => AutoRoute(path: 'about', page: AboutRoute.page); diff --git a/app/lib/report/module.dart b/app/lib/report/module.dart index a2fc0a7b..4771c952 100644 --- a/app/lib/report/module.dart +++ b/app/lib/report/module.dart @@ -4,7 +4,7 @@ import '../common/module.dart'; export 'pages/gene.dart'; export 'pages/report.dart'; -@RoutePage() +@RoutePage() class ReportRootPage extends AutoRouter {} AutoRoute geneRoute() => AutoRoute(page: GeneRoute.page); diff --git a/app/lib/search/module.dart b/app/lib/search/module.dart index c9807576..9eedc24b 100644 --- a/app/lib/search/module.dart +++ b/app/lib/search/module.dart @@ -3,7 +3,7 @@ import '../common/module.dart'; // For generated routes export 'pages/search.dart'; -@RoutePage() +@RoutePage() class SearchRootPage extends AutoRouter {} AutoRoute searchRoute({ required List children }) => AutoRoute(