mirror of
https://github.com/block/buzz.git
synced 2026-10-30 14:01:37 +00:00
## Summary - reorganize mobile settings around profile, appearance, and connection cards - add System/Light/Dark theme pairing, accent selection, and the Buzz gradient theme - align avatar badges, status editing, and supporting mobile chrome ## Test plan - `just mobile-check` - `just mobile-test`
24 lines
632 B
Dart
24 lines
632 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../theme/theme.dart';
|
|
|
|
/// The horizontal padding list rows use, allowing grouped containers to replace
|
|
/// the page-level inset without changing each row.
|
|
class AppListInset extends InheritedWidget {
|
|
const AppListInset({
|
|
super.key,
|
|
required this.horizontal,
|
|
required super.child,
|
|
});
|
|
|
|
final double horizontal;
|
|
|
|
static double of(BuildContext context) =>
|
|
context.dependOnInheritedWidgetOfExactType<AppListInset>()?.horizontal ??
|
|
Grid.gutter;
|
|
|
|
@override
|
|
bool updateShouldNotify(AppListInset oldWidget) =>
|
|
oldWidget.horizontal != horizontal;
|
|
}
|