diff --git a/lib/lang/es.dart b/lib/lang/es.dart index e0e896a..3daf9d6 100644 --- a/lib/lang/es.dart +++ b/lib/lang/es.dart @@ -152,7 +152,7 @@ const Map es = { 'Genera películas personalizadas con periodos seleccionados o vídeos específicos 🎥', 'feat7v15': 'Notificacion', 'featDesc7v15': - 'Configura notificaciones diarias programadas para recordarte grabar tu momento especial 🔔', + 'Configura notificaciones diaryas programadas para recordarte grabar tu momento especial 🔔', 'default': 'Patrón', 'profileNameAlreadyExists': 'El nombre del perfil ya existe', 'profileNameCannotContainSpecialChars': diff --git a/lib/pages/home/create_movie/widgets/create_movie_options.dart b/lib/pages/home/create_movie/widgets/create_movie_options.dart index ea4456e..2454a68 100644 --- a/lib/pages/home/create_movie/widgets/create_movie_options.dart +++ b/lib/pages/home/create_movie/widgets/create_movie_options.dart @@ -48,9 +48,10 @@ class _CreateMovieOptionsState extends State { @override Widget build(BuildContext context) { - return WillPopScope( - onWillPop: () async { - showDialog( + return PopScope( + canPop: false, + onPopInvoked: (_) async { + await showDialog( barrierDismissible: false, context: Get.context!, builder: (context) => CustomDialog( @@ -65,7 +66,6 @@ class _CreateMovieOptionsState extends State { action2: () => Get.back(), ), ); - return true; }, child: Scaffold( appBar: AppBar( diff --git a/lib/pages/save_video/save_video_page.dart b/lib/pages/save_video/save_video_page.dart index f4bd990..f51685f 100644 --- a/lib/pages/save_video/save_video_page.dart +++ b/lib/pages/save_video/save_video_page.dart @@ -465,8 +465,9 @@ class _SaveVideoPageState extends State { @override Widget build(BuildContext context) { - return WillPopScope( - onWillPop: () async { + return PopScope( + canPop: false, + onPopInvoked: (_) async { // Prevent showing the option to re-record video if not coming from the recording page final isFromRecordingPage = routeArguments['isFromRecordingPage']; if (!isFromRecordingPage) { @@ -477,7 +478,7 @@ class _SaveVideoPageState extends State { } Get.back(); } else { - showDialog( + await showDialog( barrierDismissible: false, context: Get.context!, builder: (context) => CustomDialog( @@ -493,7 +494,6 @@ class _SaveVideoPageState extends State { ), ); } - return true; }, child: Scaffold( appBar: AppBar( diff --git a/lib/pages/save_video/widgets/save_button.dart b/lib/pages/save_video/widgets/save_button.dart index 1b62f6f..f5d1ca7 100644 --- a/lib/pages/save_video/widgets/save_button.dart +++ b/lib/pages/save_video/widgets/save_button.dart @@ -115,8 +115,8 @@ class _SaveButtonState extends State { return await showDialog( context: Get.context!, barrierDismissible: false, - builder: (context) => WillPopScope( - onWillPop: () async => false, + builder: (context) => PopScope( + canPop: false, child: ValueListenableBuilder( valueListenable: saveProgressPercentage, builder: (context, value, child) => AlertDialog( diff --git a/lib/utils/storage_utils.dart b/lib/utils/storage_utils.dart index d5565b8..9308d76 100644 --- a/lib/utils/storage_utils.dart +++ b/lib/utils/storage_utils.dart @@ -124,8 +124,8 @@ class StorageUtils { showDialog( barrierDismissible: false, context: Get.context!, - builder: (context) => WillPopScope( - onWillPop: () async => false, + builder: (context) => PopScope( + canPop: false, child: AlertDialog( title: const Icon( Icons.handyman,