Files
buzz/mobile/lib/features/channels/channel_sections/section_options_button.dart
klopez4212 8cc7e94392 Refine mobile Messages sections, Duo navigation, and chat typography (#9885)
## Summary

- Organize mobile Messages into configurable flat sections. See All
keeps the list and its search position when opening a conversation, and
supports side-by-side browsing on an unfolded Duo.
- Use the same 16-point Messages gutter in booklet and open Duo layouts.
The regular iPhone uses 20 points. Align navigation actions and use
native inline titles on See All.
- Update mobile typography and spacing across chat rows, message
bubbles, drafts, and the composer. Render code proportionally to the
17-point message body.

## Device review

Compare the leading edges of the section headings and channel icons in
Messages on the open Duo and in booklet mode. Open See All and check
that its rows follow the same column.

---------

Signed-off-by: Terp <5856f6900e8e0a4e0ea1f4f8d2ee33e4753d2119bc122f94ecafc660b46c0511@buzz.block.builderlab.xyz>
Signed-off-by: kenny lopez <klopez4212@gmail.com>
Co-authored-by: Terp <5856f6900e8e0a4e0ea1f4f8d2ee33e4753d2119bc122f94ecafc660b46c0511@buzz.block.builderlab.xyz>
2026-11-23 13:14:05 -08:00

50 lines
1.1 KiB
Dart

import 'package:flutter/material.dart';
import '../../../shared/theme/buzz_icons.dart';
import '../../../shared/theme/theme.dart';
class SectionOptionsButton extends StatelessWidget {
const SectionOptionsButton({
super.key,
this.icon = BuzzIcons.ellipsis,
required this.tooltip,
required this.onPressed,
});
final IconData icon;
final String tooltip;
final VoidCallback onPressed;
@override
Widget build(BuildContext context) => Semantics(
button: true,
label: tooltip,
onTap: onPressed,
excludeSemantics: true,
child: Tooltip(
message: tooltip,
child: SizedBox(
width: 64,
height: 48,
child: InkWell(
onTap: onPressed,
borderRadius: BorderRadius.circular(Radii.full),
child: Align(
alignment: Alignment.centerRight,
child: SizedBox(
width: 44,
child: Center(
child: Icon(
icon,
size: 14,
color: navigationAccessoryForeground(context),
),
),
),
),
),
),
),
);
}