chore: Nicer empty page

This commit is contained in:
krille-chan 2024-11-03 08:20:05 +01:00
parent 9019d9c9a6
commit 8ba46a3533
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

BIN
assets/logo_transparent.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View file

@ -8,6 +8,7 @@ class EmptyPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
final width = min(MediaQuery.of(context).size.width, EmptyPage._width) / 2;
final theme = Theme.of(context);
return Scaffold(
// Add invisible appbar to make status bar on Android tablets bright.
appBar: AppBar(
@ -19,7 +20,8 @@ class EmptyPage extends StatelessWidget {
body: Container(
alignment: Alignment.center,
child: Image.asset(
'assets/info-logo.png',
'assets/logo_transparent.png',
color: theme.colorScheme.surfaceContainerHigh,
width: width,
height: width,
filterQuality: FilterQuality.medium,