diff --git a/.env.staging.sample b/.env.staging.sample index 3758c22..f36d295 100644 --- a/.env.staging.sample +++ b/.env.staging.sample @@ -1,2 +1,2 @@ -SECRET="123" +SECRET= REST_API_ENDPOINT= diff --git a/integration_test/my_home_page_test.dart b/integration_test/my_home_page_test.dart index aa32a77..7b4f558 100644 --- a/integration_test/my_home_page_test.dart +++ b/integration_test/my_home_page_test.dart @@ -13,8 +13,8 @@ void main() { .pumpWidget(TestUtil.pumpWidgetWithShellApp(const HomeScreen())); await tester.pumpAndSettle(); - expect(find.widgetWithText(AppBar, 'Survey Flutter testing'), - findsOneWidget); + expect( + find.widgetWithText(AppBar, 'Survey Flutter testing'), findsOneWidget); expect(find.text('This is only for testing'), findsOneWidget); }); } diff --git a/integration_test/real_app_test.dart b/integration_test/real_app_test.dart index c8b89d7..abe57bf 100644 --- a/integration_test/real_app_test.dart +++ b/integration_test/real_app_test.dart @@ -11,8 +11,8 @@ void main() { await tester.pumpWidget(TestUtil.pumpWidgetWithRealApp('/')); await tester.pumpAndSettle(); - expect(find.widgetWithText(AppBar, 'Survey Flutter testing'), - findsOneWidget); + expect( + find.widgetWithText(AppBar, 'Survey Flutter testing'), findsOneWidget); expect(find.text('This is only for testing'), findsOneWidget); }); } diff --git a/lib/main.dart b/lib/main.dart index 3042fa7..402e02a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -78,7 +78,11 @@ class HomeScreen extends StatelessWidget { ), ), const SizedBox(height: 24), - Text(AppLocalizations.of(context)!.hello), + Text(AppLocalizations.of(context)!.hello), + Text( + FlutterConfig.get('SECRET'), + style: const TextStyle(color: Colors.black, fontSize: 24), + ), const SizedBox(height: 24), ElevatedButton( onPressed: () => context.go('/$routePathSecondScreen'), @@ -104,4 +108,4 @@ class SecondScreen extends StatelessWidget { ), ); } -} \ No newline at end of file +}