Skip to content

Commit

Permalink
Improve broadcast cards
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Feb 3, 2025
1 parent 3aa8d18 commit 3074e49
Show file tree
Hide file tree
Showing 6 changed files with 305 additions and 251 deletions.
9 changes: 9 additions & 0 deletions lib/src/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@ class _AppState extends ConsumerState<Application> {
blendLevel: 20,
);

const iosMenuTheme = MenuThemeData(
style: MenuStyle(
elevation: WidgetStatePropertyAll(0),
shape: WidgetStatePropertyAll(RoundedRectangleBorder(borderRadius: kCardBorderRadius)),
),
);

return AnnotatedRegion<SystemUiOverlayStyle>(
value: FlexColorScheme.themedSystemNavigationBar(
context,
Expand All @@ -234,6 +241,7 @@ class _AppState extends ConsumerState<Application> {
subtitleTextStyle: isIOS ? lightCupertino.textTheme.textStyle : null,
leadingAndTrailingTextStyle: isIOS ? lightCupertino.textTheme.textStyle : null,
),
menuTheme: isIOS ? iosMenuTheme : null,
floatingActionButtonTheme: floatingActionButtonTheme,
navigationBarTheme: NavigationBarTheme.of(context).copyWith(
height: remainingHeight < kSmallRemainingHeightLeftBoardThreshold ? 60 : null,
Expand All @@ -252,6 +260,7 @@ class _AppState extends ConsumerState<Application> {
subtitleTextStyle: isIOS ? darkCupertino.textTheme.textStyle : null,
leadingAndTrailingTextStyle: isIOS ? darkCupertino.textTheme.textStyle : null,
),
menuTheme: isIOS ? iosMenuTheme : null,
floatingActionButtonTheme: floatingActionButtonTheme,
navigationBarTheme: NavigationBarTheme.of(context).copyWith(
height: remainingHeight < kSmallRemainingHeightLeftBoardThreshold ? 60 : null,
Expand Down
Loading

0 comments on commit 3074e49

Please sign in to comment.