diff --git a/integration_test/app_test.dart b/integration_test/app_test.dart index 66966f1f..0d832c65 100644 --- a/integration_test/app_test.dart +++ b/integration_test/app_test.dart @@ -32,7 +32,6 @@ import 'app_test.dart'; import 'fuzzer/fuzzer.dart'; import 'package:patrol_finders/patrol_finders.dart'; -import 'package:integration_test/integration_test.dart'; export 'package:flutter_test/flutter_test.dart'; export 'package:patrol/patrol.dart'; @@ -72,26 +71,26 @@ void main() { // setUp(() async {}); // tearDown(() async {}); - // WelcomeTest.signInToSignUp(); - // WelcomeTest.signUpToSignIn(); + WelcomeTest.signInToSignUp(); + WelcomeTest.signUpToSignIn(); - // AuthenticationTest.signIn(); - // AuthenticationTest.signUp(); - // AuthenticationTest.signOut(); + AuthenticationTest.signIn(); + AuthenticationTest.signUp(); + AuthenticationTest.signOut(); // AuthenticationTest.recovery(); - // ModularizationTest.switchLicense(); - // ModularizationTest.containLicense(); + ModularizationTest.switchLicense(); + ModularizationTest.containLicense(); - // MenuTest.navToEntries(); - // MenuTest.containEntries(); - // MenuTest.labels2AppbarConsistency(); + MenuTest.navToEntries(); + MenuTest.containEntries(); + MenuTest.labels2AppbarConsistency(); - // LocalsTest.setLocal(); - // LocalsTest.unlinkLocal(); + LocalsTest.setLocal(); + LocalsTest.unlinkLocal(); - // VehicleTest.vehiclePage(); - // VehicleTest.historyScreen(); + VehicleTest.vehiclePage(); + VehicleTest.historyScreen(); VehicleTest.registerScreen(); - // VehicleTest.updateScreen(); + VehicleTest.updateScreen(); } diff --git a/lib/flutter_flow/flutter_flow_util.dart b/lib/flutter_flow/flutter_flow_util.dart index 13308e5e..1aa2f180 100644 --- a/lib/flutter_flow/flutter_flow_util.dart +++ b/lib/flutter_flow/flutter_flow_util.dart @@ -537,40 +537,8 @@ void showSnackbarMessenger( int duration = 4, }) { ScaffoldMessenger.of(context).hideCurrentSnackBar(); - ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - content: Row( - children: [ - if (loading) - Padding( - padding: const EdgeInsetsDirectional.only(end: 10.0), - child: SizedBox( - height: 20, - width: 20, - child: CircularProgressIndicator( - color: FlutterFlowTheme.of(context).info, - ), - ), - ), - Text( - message, - style: TextStyle( - color: FlutterFlowTheme.of(context).info, - fontSize: LimitedFontSizeUtil.getBodyFontSize(context), - ), - ), - ], - ), - duration: Duration(seconds: duration), - backgroundColor: error - ? FlutterFlowTheme.of(context).error - : FlutterFlowTheme.of(context).success, - behavior: SnackBarBehavior.floating, - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(30), - ), - ), - ); + ScaffoldMessenger.of(context) + .showSnackBar(showSnackbar(context, message, error)); } SnackBar showSnackbar(