mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 12:25:11 +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:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:fluffychat/config/themes.dart';
|
|
||||||
|
|
||||||
class EmptyPage extends StatelessWidget {
|
class EmptyPage extends StatelessWidget {
|
||||||
static const double _width = 128;
|
static const double _width = 400;
|
||||||
const EmptyPage({super.key});
|
const EmptyPage({super.key});
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -19,12 +17,9 @@ class EmptyPage extends StatelessWidget {
|
||||||
),
|
),
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: Container(
|
body: Container(
|
||||||
decoration: BoxDecoration(
|
|
||||||
gradient: FluffyThemes.backgroundGradient(context, 128),
|
|
||||||
),
|
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
'assets/favicon.png',
|
'assets/info-logo.png',
|
||||||
width: width,
|
width: width,
|
||||||
height: width,
|
height: width,
|
||||||
filterQuality: FilterQuality.medium,
|
filterQuality: FilterQuality.medium,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import 'dart:ui';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||||
|
@ -40,7 +42,7 @@ class LoginScaffold extends StatelessWidget {
|
||||||
body: body,
|
body: body,
|
||||||
backgroundColor: isMobileMode
|
backgroundColor: isMobileMode
|
||||||
? null
|
? null
|
||||||
: Theme.of(context).colorScheme.background.withOpacity(0.9),
|
: Theme.of(context).colorScheme.background.withOpacity(0.8),
|
||||||
bottomNavigationBar: isMobileMode
|
bottomNavigationBar: isMobileMode
|
||||||
? Material(
|
? Material(
|
||||||
elevation: 4,
|
elevation: 4,
|
||||||
|
@ -77,7 +79,13 @@ class LoginScaffold extends StatelessWidget {
|
||||||
constraints: isMobileMode
|
constraints: isMobileMode
|
||||||
? const BoxConstraints()
|
? const BoxConstraints()
|
||||||
: const BoxConstraints(maxWidth: 480, maxHeight: 720),
|
: 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