Skip to content

Commit

Permalink
Merge pull request #2090 from acterglobal/kumar/bug-fixes
Browse files Browse the repository at this point in the history
Bug Fixing
  • Loading branch information
kumarpalsinh25 authored Aug 23, 2024
2 parents 683cebc + 42ad24a commit ba4d9b6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
7 changes: 3 additions & 4 deletions app/lib/features/chat/widgets/bubble_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,9 @@ class _ChatBubble extends ConsumerWidget {
children: <Widget>[
Container(
decoration: BoxDecoration(
color: Theme.of(context)
.colorScheme
.secondaryContainer
.withOpacity(0.3),
color: isAuthor
? Theme.of(context).colorScheme.surface.withOpacity(0.3)
: Theme.of(context).colorScheme.onSurface.withOpacity(0.2),
borderRadius: BorderRadius.circular(22),
),
child: Column(
Expand Down
11 changes: 9 additions & 2 deletions app/lib/features/news/widgets/news_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,15 @@ class _NewsItemState extends ConsumerState<NewsItem> {
loading: () => const EventItemSkeleton(),
error: (e, s) {
_log.severe('Failed to load cal event', e, s);
return Center(
child: Text(L10n.of(context).failedToLoadEvent(e)),
return Card(
child: ListTile(
leading: const Icon(Icons.calendar_month),
title: Text(L10n.of(context).eventNoLongerAvailable),
subtitle: Text(
L10n.of(context).eventDeletedOrFailedToLoad,
style: Theme.of(context).textTheme.labelLarge,
),
),
);
},
);
Expand Down
4 changes: 3 additions & 1 deletion app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2126,5 +2126,7 @@
"inSpaceLabelInline": "In",
"comingSoon": "Not supported yet, coming soon!",
"colonCharacter": " : ",
"errorLoadingSpaces": "Error loading spaces: {error}"
"errorLoadingSpaces": "Error loading spaces: {error}",
"eventNoLongerAvailable": "Event no longer available",
"eventDeletedOrFailedToLoad": "This may due to event deletion or failed to load"
}

0 comments on commit ba4d9b6

Please sign in to comment.