Narrow list panes: readable bar title, More overflow menu, rows keep status and actions

The floating bar keeps the title at its own width (up to half the bar) and
moves overflowable actions into one More menu instead of squeezing them
below their touch targets. List rows keep their leading status avatar and
More actions at any list-pane width; the time moves under the subtitle.
This commit is contained in:
2026-11-03 18:04:10 +00:00
parent fb3987ef4e
commit a40a6e2e1c
22 changed files with 1205 additions and 239 deletions
@@ -1,3 +1,4 @@
import '../../../../ui/adaptive/segmented_bar_overflow.dart';
import '../../../../ui/theme/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@@ -13,7 +14,7 @@ ChatControlsStyle chatControlsStyleOf(BuildContext context) =>
? ChatControlsStyle.cupertino
: ChatControlsStyle.material;
class ChatBarAction extends StatelessWidget {
class ChatBarAction extends StatelessWidget implements SegmentedOverflowable {
const ChatBarAction({
super.key,
required this.label,
@@ -27,6 +28,14 @@ class ChatBarAction extends StatelessWidget {
final IconData materialIcon;
final IconData cupertinoIcon;
/// A narrow bar moves it into its More menu, under the bar's host's icon.
@override
SegmentedOverflowEntry get overflowEntry => SegmentedOverflowEntry(
label: label,
icon: materialIcon,
onPressed: onPressed,
);
@override
Widget build(BuildContext context) {
if (chatControlsStyleOf(context) == ChatControlsStyle.cupertino) {
@@ -62,7 +62,6 @@ class ChatSessionRow extends StatelessWidget {
selected: selected,
emphasized: unread,
divider: divider,
keepMenuWhenCompact: true,
onTap: () => onOpen(session),
onLongPress: onLongPress,
accent: chatColorShade(context, chatSessionColor(session)),