From dda77670b48205cd3d1cc5c68407e29b8ff8c365 Mon Sep 17 00:00:00 2001 From: Doan Thieu Date: Fri, 11 Aug 2023 11:14:53 +0700 Subject: [PATCH] [#7] Rename the app class --- integration_test/utils/test_util.dart | 2 +- lib/main.dart | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/integration_test/utils/test_util.dart b/integration_test/utils/test_util.dart index b1ac297..a143c15 100644 --- a/integration_test/utils/test_util.dart +++ b/integration_test/utils/test_util.dart @@ -9,7 +9,7 @@ class TestUtil { /// localization, routes, etc) static Widget pumpWidgetWithRealApp(String initialRoute) { _initDependencies(); - return MyApp(); + return App(); } /// We normally use this function to test a specific [widget] without diff --git a/lib/main.dart b/lib/main.dart index 6151e7b..2bf8042 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -12,15 +12,15 @@ void main() async { await FlutterConfig.loadEnvVariables(); runApp( ProviderScope( - child: MyApp(), + child: App(), ), ); } const routePathSplashScreen = '/'; -class MyApp extends StatelessWidget { - MyApp({Key? key}) : super(key: key); +class App extends StatelessWidget { + App({Key? key}) : super(key: key); final GoRouter _router = GoRouter( routes: [