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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user