Skip to content

Commit e36e57f

Browse files
committed
fix(config): clear success flag correctly
- Fixed snackbar display logic - Cleared flag after showing snackbar
1 parent ca4ac81 commit e36e57f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/app_configuration/view/app_configuration_page.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
7979
);
8080
// Clear the showSaveSuccess flag after showing the snackbar
8181
context.read<AppConfigurationBloc>().add(
82-
const AppConfigurationFieldChanged(
83-
appConfig: null, // No actual config change, just clear flag
84-
),
82+
const AppConfigurationFieldChanged(),
8583
);
8684
} else if (state.status == AppConfigurationStatus.failure) {
8785
ScaffoldMessenger.of(context)

0 commit comments

Comments
 (0)