Files
klopez4212andGitHub 871a3b3772 Refine mobile community switching and discovery (#2967)
## Summary

- Redesign community switching with relay-provided avatars,
selected-state checks, edit-to-remove controls, and confirmation.
- Bring desktop-inspired pairing onboarding to mobile with QR scanning
as the primary action, an expandable pairing-code flow, and a tappable
flapping bee.
- Polish Search and Activity headers, filter chips, typography, keyboard
stability, and Android adaptive-icon sizing.

## Validation

- `just mobile-check`
- `just mobile-test` — 661 passed, 1 skipped
- Pixel 10 snapshot review
2026-07-26 15:05:57 -07:00

122 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 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: TextStyle(
fontFamily: _fontFamily,
fontSize: 20,
fontWeight: FontWeight.w500,
height: 1.3,
letterSpacing: 0,
),
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: TextStyle(
fontFamily: _fontFamily,
fontSize: 16,
fontWeight: FontWeight.w400,
height: 20 / 16,
letterSpacing: 0,
),
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,
),
);