mirror of
https://github.com/block/buzz.git
synced 2026-11-28 04:01:45 +00:00
## 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>
126 lines
2.6 KiB
Dart
126 lines
2.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
const _fontFamily = 'Inter';
|
|
const _chatLineHeight = 22 / 16;
|
|
|
|
/// Optional 12sp body style for compact secondary metadata.
|
|
const bodyExtraSmallTextStyle = TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 12,
|
|
fontWeight: FontWeight.w400,
|
|
height: 1.25,
|
|
letterSpacing: 0,
|
|
);
|
|
|
|
const bodyLargeTextStyle = TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 16,
|
|
fontWeight: FontWeight.w400,
|
|
height: 20 / 16,
|
|
letterSpacing: 0,
|
|
);
|
|
|
|
const titleMediumTextStyle = TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.w500,
|
|
height: 1.3,
|
|
letterSpacing: 0,
|
|
);
|
|
|
|
const textTheme = TextTheme(
|
|
displayLarge: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 52,
|
|
fontWeight: FontWeight.w400,
|
|
height: 1.23,
|
|
letterSpacing: 0,
|
|
),
|
|
displayMedium: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 44,
|
|
fontWeight: FontWeight.w400,
|
|
height: 1.18,
|
|
letterSpacing: 0,
|
|
),
|
|
displaySmall: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 36,
|
|
fontWeight: FontWeight.w400,
|
|
height: 1.22,
|
|
letterSpacing: 0,
|
|
),
|
|
headlineLarge: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 32,
|
|
fontWeight: FontWeight.w600,
|
|
height: 1.25,
|
|
letterSpacing: 0,
|
|
),
|
|
headlineMedium: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 28,
|
|
fontWeight: FontWeight.w600,
|
|
height: 1.29,
|
|
letterSpacing: 0,
|
|
),
|
|
headlineSmall: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 24,
|
|
fontWeight: FontWeight.w600,
|
|
height: 1.33,
|
|
letterSpacing: 0,
|
|
),
|
|
titleLarge: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 24,
|
|
fontWeight: FontWeight.w400,
|
|
height: 1.25,
|
|
letterSpacing: 0,
|
|
),
|
|
titleMedium: titleMediumTextStyle,
|
|
titleSmall: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 16,
|
|
fontWeight: FontWeight.w500,
|
|
height: _chatLineHeight,
|
|
letterSpacing: 0,
|
|
),
|
|
labelLarge: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 16,
|
|
fontWeight: FontWeight.w500,
|
|
height: 1.2,
|
|
letterSpacing: 0,
|
|
),
|
|
labelMedium: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 14,
|
|
fontWeight: FontWeight.w500,
|
|
height: 1.25,
|
|
letterSpacing: 0,
|
|
),
|
|
labelSmall: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 11,
|
|
fontWeight: FontWeight.w500,
|
|
height: 1.2,
|
|
letterSpacing: 0,
|
|
),
|
|
bodyLarge: bodyLargeTextStyle,
|
|
bodyMedium: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 14,
|
|
fontWeight: FontWeight.w400,
|
|
height: 1.3,
|
|
letterSpacing: 0,
|
|
),
|
|
bodySmall: TextStyle(
|
|
fontFamily: _fontFamily,
|
|
fontSize: 14,
|
|
fontWeight: FontWeight.w400,
|
|
height: 1.25,
|
|
letterSpacing: 0,
|
|
),
|
|
);
|