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.
This commit is contained in:
2026-11-11 20:35:48 +00:00
parent 04ba81e0ea
commit 1b36328860
@@ -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.