From 1869c5545e621eef30e282d44c74668dd4be3589 Mon Sep 17 00:00:00 2001 From: youms Date: Sat, 18 Feb 2023 13:42:56 +0200 Subject: [PATCH] fix: when sign up is success and push a workout_page then if the user tried to pop it, it will pop to black screen --- lib/UI/workout/workout_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/UI/workout/workout_page.dart b/lib/UI/workout/workout_page.dart index bb52219..d707ab8 100644 --- a/lib/UI/workout/workout_page.dart +++ b/lib/UI/workout/workout_page.dart @@ -91,10 +91,10 @@ class _WorkoutPageState extends State { appBar: AppBar( backgroundColor: theme.colorTheme.backgroundColorVariation, leading: BackButton( - onPressed: Navigator.of(context).pop, + onPressed: Navigator.of(context).maybePop, color: theme.colorTheme.primaryColor, ), - actions: [ + actions: [ Container( margin: const EdgeInsets.only(right: 5), height: 30,