Merge commit '61c34bb74ad275430fb8909f64fc18cd588fb943' into pipelines/run-20261111-1951-material-cleanup-shared-ui-primitives-65fb

This commit is contained in:
2026-11-11 20:33:29 +00:00
96 changed files with 674 additions and 1028 deletions
+25
View File
@@ -57,6 +57,31 @@ Future<T?> showAppChoiceMenu<T>(
);
}
/// A choice row shared by the app's anchored choice menus. Keeping the row
/// here makes checked state and tap affordances consistent across selectors.
class AppChoiceMenuItem extends StatelessWidget {
const AppChoiceMenuItem({
super.key,
required this.child,
required this.selected,
required this.onTap,
});
final Widget child;
final bool selected;
final VoidCallback? onTap;
@override
Widget build(BuildContext context) => ListTile(
enabled: onTap != null,
title: child,
trailing: selected
? Icon(Icons.check, color: Theme.of(context).colorScheme.primary)
: null,
onTap: onTap,
);
}
/// Shows richer content (a chat's details, a file's details) built by
/// [builder]: a dialog on a wide app, a bottom sheet on a phone, on the root
/// navigator either way. The content sizes itself (a `Column` with