chore: Nicer empty page
This commit is contained in:
parent
9019d9c9a6
commit
8ba46a3533
2 changed files with 3 additions and 1 deletions
BIN
assets/logo_transparent.png
Normal file
BIN
assets/logo_transparent.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue