Add chat files panel explorer shell with sorting and views

This commit is contained in:
2026-11-07 01:06:23 +00:00
parent f4ba2ab25e
commit 5a1d503f58
10 changed files with 650 additions and 6 deletions
@@ -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),
),
);
}
}