feat(theme): Add system overlay style for consistent UI appearance

This commit is contained in:
cogwheel0
2025-12-11 17:38:52 +05:30
parent 4c80d9f521
commit 289fbcb49e
2 changed files with 11 additions and 5 deletions

View File

@@ -2129,11 +2129,9 @@ class _ChatPageState extends ConsumerState<ChatPage> {
// Floating Scroll to Bottom Button with smooth appear/disappear // Floating Scroll to Bottom Button with smooth appear/disappear
Positioned( Positioned(
bottom: bottom: (_inputHeight > 0)
((_inputHeight > 0) ? _inputHeight
? _inputHeight : (Spacing.xxl + Spacing.xxxl),
: (Spacing.xxl + Spacing.xxxl)) +
Spacing.sm,
left: 0, left: 0,
right: 0, right: 0,
child: AnimatedSwitcher( child: AnimatedSwitcher(

View File

@@ -2,6 +2,7 @@ import 'dart:math' as math;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/services.dart';
import 'package:flutter_animate/flutter_animate.dart'; import 'package:flutter_animate/flutter_animate.dart';
import 'theme_extensions.dart'; import 'theme_extensions.dart';
import 'tweakcn_themes.dart'; import 'tweakcn_themes.dart';
@@ -115,6 +116,13 @@ class AppTheme {
elevation: Elevation.none, elevation: Elevation.none,
backgroundColor: surfaces.background, backgroundColor: surfaces.background,
foregroundColor: tokens.neutralOnSurface, foregroundColor: tokens.neutralOnSurface,
systemOverlayStyle: SystemUiOverlayStyle(
statusBarBrightness: brightness,
statusBarIconBrightness: isDark ? Brightness.light : Brightness.dark,
systemNavigationBarIconBrightness: isDark
? Brightness.light
: Brightness.dark,
),
), ),
bottomSheetTheme: BottomSheetThemeData( bottomSheetTheme: BottomSheetThemeData(
backgroundColor: surfaces.card, backgroundColor: surfaces.card,