Skip to content

Commit

Permalink
Updated OfflineBanner UI and text
Browse files Browse the repository at this point in the history
Signed-off-by: Khalid Warsame <dev@khalidwar.com>
  • Loading branch information
KhalidWar committed Mar 11, 2022
1 parent 18da792 commit 178c4ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/shared_components/constants/app_strings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class AppStrings {
static const noInternetOfflineData = 'No internet connection';
static const noInternetDialogTitle = 'Offline Mode';
static const noInternetContent =
'No internet connection. Displaying cached offline data.';
'No internet connection; displaying cached offline data.';
static const noInternetDialogButton = 'Close';

/// Miscellaneous
Expand Down
8 changes: 6 additions & 2 deletions lib/shared_components/offline_banner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ class OfflineBanner extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListTile(
tileColor: Colors.red,
title: const Text(AppStrings.noInternetOfflineData),
tileColor: Colors.redAccent,
iconColor: Colors.black,
title: const Text(
AppStrings.noInternetOfflineData,
),
leading: const Icon(Icons.warning_amber_outlined),
trailing: const Icon(Icons.info_outline),
onTap: () {
PlatformAware.platformDialog(
context: context,
Expand Down

0 comments on commit 178c4ae

Please sign in to comment.