diff --git a/app/lib/features/chat/ui/transcript/shown/chat_shown_html_card.dart b/app/lib/features/chat/ui/transcript/shown/chat_shown_html_card.dart index 12e07338..5ff10247 100644 --- a/app/lib/features/chat/ui/transcript/shown/chat_shown_html_card.dart +++ b/app/lib/features/chat/ui/transcript/shown/chat_shown_html_card.dart @@ -43,6 +43,8 @@ class ChatShownHtmlCard extends StatelessWidget { final open = expired ? null : () => Navigator.of(context, rootNavigator: true).push( + // The Material host: the route is a MaterialPageRoute whatever + // this flag says, so the flag is always false here. artifactFullscreenRoute( cupertino: false, builder: (_) => ChatShownHtmlPage( diff --git a/app/test/features/chat/ui/transcript/shown/chat_shown_card_test.dart b/app/test/features/chat/ui/transcript/shown/chat_shown_card_test.dart index 2765ae5e..45792de2 100644 --- a/app/test/features/chat/ui/transcript/shown/chat_shown_card_test.dart +++ b/app/test/features/chat/ui/transcript/shown/chat_shown_card_test.dart @@ -212,4 +212,20 @@ void main() { findsOneWidget, ); }); + + testWidgets('an undelivered notify row draws the error icon in the theme', ( + tester, + ) async { + await pump(tester, { + 'id': 'n3', + 'kind': 'notify', + 'title': 'Build done', + 'delivered': false, + }); + final icon = find.byIcon(Icons.notifications_off_outlined); + expect(icon, findsOneWidget); + final theme = Theme.of(tester.element(icon)); + expect(tester.widget(icon).color, theme.colorScheme.error); + expect(find.byIcon(Icons.notifications_outlined), findsNothing); + }); }