File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ Control the behavior and appearance of the `ht_main` mobile application remotely
35
35
#### 📊 ** Intuitive User Interface**
36
36
Built with Flutter, the dashboard provides a responsive and user-friendly
37
37
experience across various web browsers and screen sizes.
38
+ * ** User-Friendly Error Handling:** Displays clear, localized error messages for a smooth and understandable user experience when issues arise.
38
39
* ** Benefit for you:** A modern, maintainable, and visually appealing
39
40
interface for your administrative tasks. ✨
40
41
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import 'package:ht_ui_kit/ht_ui_kit.dart';
6
6
class FailureStateWidget extends StatelessWidget {
7
7
/// Creates a [FailureStateWidget] .
8
8
///
9
- /// The [exception] is the error exception to display.
9
+ /// This widget accepts an [exception] of type [HtHttpException]
10
+ /// and uses the `toFriendlyMessage` extension from `ht_ui_kit`
11
+ /// to display a localized, user-friendly error message.
10
12
///
11
13
/// The [onRetry] is an optional callback to be called
12
14
/// when the retry button is pressed.
@@ -18,6 +20,7 @@ class FailureStateWidget extends StatelessWidget {
18
20
});
19
21
20
22
/// The error exception to display.
23
+ /// This exception will be converted to a friendly, localized message.
21
24
final HtHttpException exception;
22
25
23
26
/// An optional callback to be called when the retry button is pressed.
You can’t perform that action at this time.
0 commit comments