mirror of
https://github.com/krille-chan/fluffychat
synced 2024-08-11 07:53:48 +00:00
chore: Dark mode improvements
This commit is contained in:
parent
b5a6c5e73b
commit
cfc161b252
2 changed files with 12 additions and 9 deletions
|
@ -2,10 +2,8 @@ import 'dart:math';
|
|||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:fluffychat/config/themes.dart';
|
||||
|
||||
class EmptyPage extends StatelessWidget {
|
||||
static const double _width = 128;
|
||||
static const double _width = 400;
|
||||
const EmptyPage({super.key});
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -19,12 +17,9 @@ class EmptyPage extends StatelessWidget {
|
|||
),
|
||||
extendBodyBehindAppBar: true,
|
||||
body: Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: FluffyThemes.backgroundGradient(context, 128),
|
||||
),
|
||||
alignment: Alignment.center,
|
||||
child: Image.asset(
|
||||
'assets/favicon.png',
|
||||
'assets/info-logo.png',
|
||||
width: width,
|
||||
height: width,
|
||||
filterQuality: FilterQuality.medium,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
@ -40,7 +42,7 @@ class LoginScaffold extends StatelessWidget {
|
|||
body: body,
|
||||
backgroundColor: isMobileMode
|
||||
? null
|
||||
: Theme.of(context).colorScheme.background.withOpacity(0.9),
|
||||
: Theme.of(context).colorScheme.background.withOpacity(0.8),
|
||||
bottomNavigationBar: isMobileMode
|
||||
? Material(
|
||||
elevation: 4,
|
||||
|
@ -77,7 +79,13 @@ class LoginScaffold extends StatelessWidget {
|
|||
constraints: isMobileMode
|
||||
? const BoxConstraints()
|
||||
: const BoxConstraints(maxWidth: 480, maxHeight: 720),
|
||||
child: scaffold,
|
||||
child: BackdropFilter(
|
||||
filter: ImageFilter.blur(
|
||||
sigmaX: 10.0,
|
||||
sigmaY: 10.0,
|
||||
),
|
||||
child: scaffold,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue