From 1b36328860301c3294fde03f9e7b66a82d8e68c2 Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Wed, 11 Nov 2026 20:35:48 +0000 Subject: [PATCH] Preserve chat action compatibility Keep the optional legacy icon parameter available for callers that have not yet migrated while rendering remains Material-only. The reviewed chat cleanup is already present in the preceding commit. --- app/lib/features/chat/ui/sessions/chat_adaptive.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/lib/features/chat/ui/sessions/chat_adaptive.dart b/app/lib/features/chat/ui/sessions/chat_adaptive.dart index 5831c600..9326fa8a 100644 --- a/app/lib/features/chat/ui/sessions/chat_adaptive.dart +++ b/app/lib/features/chat/ui/sessions/chat_adaptive.dart @@ -7,6 +7,7 @@ class ChatBarAction extends StatelessWidget implements SegmentedOverflowable { required this.label, required this.onPressed, required this.materialIcon, + this.cupertinoIcon, this.identifier, }); @@ -14,6 +15,10 @@ class ChatBarAction extends StatelessWidget implements SegmentedOverflowable { final VoidCallback onPressed; final IconData materialIcon; + /// Compatibility for callers not yet migrated; Material always uses + /// [materialIcon]. + final IconData? cupertinoIcon; + final String? identifier; /// A narrow bar moves it into its More menu, under the bar's host's icon.