Skip to content

Commit a38263a

Browse files
committed
docs: Add user-friendly error handling to features list
1 parent 1697e36 commit a38263a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Control the behavior and appearance of the `ht_main` mobile application remotely
3535
#### 📊 **Intuitive User Interface**
3636
Built with Flutter, the dashboard provides a responsive and user-friendly
3737
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.
3839
* **Benefit for you:** A modern, maintainable, and visually appealing
3940
interface for your administrative tasks. ✨
4041

lib/shared/widgets/failure_state_widget.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import 'package:ht_ui_kit/ht_ui_kit.dart';
66
class FailureStateWidget extends StatelessWidget {
77
/// Creates a [FailureStateWidget].
88
///
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.
1012
///
1113
/// The [onRetry] is an optional callback to be called
1214
/// when the retry button is pressed.
@@ -18,6 +20,7 @@ class FailureStateWidget extends StatelessWidget {
1820
});
1921

2022
/// The error exception to display.
23+
/// This exception will be converted to a friendly, localized message.
2124
final HtHttpException exception;
2225

2326
/// An optional callback to be called when the retry button is pressed.

0 commit comments

Comments
 (0)