skip to Main Content

How to open dialog above all screens in flutter, when using go_router?

final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>(); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return BlocProvider<InactivityCubit>( create: (_) => inject<InactivityCubit>(), child: MaterialApp.router( builder: (context, widget) { return Container( child: BlocListener<InactivityCubit, InactivityState>( listener: (context, state) => state.whenOrNull( showDialog:…

VIEW QUESTION

Flutter – Release apk build failed

I am trying to build release apk of a project, but getting following errors: debugging APK is running fine Multiple build operations failed. Could not create task ':flutter_plugin_android_lifecycle:generateDebugUnitTestConfig'. Could not create task ':google_maps_flutter_android:generateDebugUnitTestConfig'. Could not create task ':image_picker_android:generateDebugUnitTestConfig'. Could not…

VIEW QUESTION
Back To Top
Search