Add chat files panel explorer shell with sorting and views
This commit is contained in:
@@ -21,12 +21,14 @@ class ChatBarAction extends StatelessWidget implements SegmentedOverflowable {
|
||||
required this.onPressed,
|
||||
required this.materialIcon,
|
||||
required this.cupertinoIcon,
|
||||
this.identifier,
|
||||
});
|
||||
|
||||
final String label;
|
||||
final VoidCallback onPressed;
|
||||
final IconData materialIcon;
|
||||
final IconData cupertinoIcon;
|
||||
final String? identifier;
|
||||
|
||||
/// A narrow bar moves it into its More menu, under the bar's host's icon.
|
||||
@override
|
||||
@@ -40,6 +42,7 @@ class ChatBarAction extends StatelessWidget implements SegmentedOverflowable {
|
||||
Widget build(BuildContext context) {
|
||||
if (chatControlsStyleOf(context) == ChatControlsStyle.cupertino) {
|
||||
return Semantics(
|
||||
identifier: identifier,
|
||||
label: label,
|
||||
button: true,
|
||||
child: CupertinoButton(
|
||||
@@ -49,10 +52,13 @@ class ChatBarAction extends StatelessWidget implements SegmentedOverflowable {
|
||||
),
|
||||
);
|
||||
}
|
||||
return IconButton(
|
||||
tooltip: label,
|
||||
onPressed: onPressed,
|
||||
icon: Icon(materialIcon),
|
||||
return Semantics(
|
||||
identifier: identifier,
|
||||
child: IconButton(
|
||||
tooltip: label,
|
||||
onPressed: onPressed,
|
||||
icon: Icon(materialIcon),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user