File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import 'package:ht_dashboard/shared/constants/app_spacing.dart';
8
8
import 'package:ht_dashboard/shared/widgets/widgets.dart' ;
9
9
import 'package:ht_data_repository/ht_data_repository.dart' ;
10
10
import 'package:ht_shared/ht_shared.dart' ;
11
+ import 'package:ht_ui_kit/ht_ui_kit.dart' ; // Import for toFriendlyMessage
11
12
12
13
/// {@template settings_page}
13
14
/// A page for user settings, allowing customization of theme and language.
@@ -79,7 +80,7 @@ class _SettingsView extends StatelessWidget {
79
80
..showSnackBar (
80
81
SnackBar (
81
82
content: Text (
82
- l10n. settingsSaveErrorMessage ( state.errorMessage ),
83
+ state.exception. toFriendlyMessage (context ),
83
84
),
84
85
),
85
86
);
@@ -104,7 +105,7 @@ class _SettingsView extends StatelessWidget {
104
105
);
105
106
} else if (state is SettingsLoadFailure ) {
106
107
return FailureStateWidget (
107
- message : l10n. failedToLoadSettingsMessage ( state.errorMessage) ,
108
+ exception : state.exception ,
108
109
onRetry: () {
109
110
context.read <SettingsBloc >().add (
110
111
SettingsLoaded (
You can’t perform that action at this time.
0 commit comments