mirror of
https://github.com/krille-chan/fluffychat
synced 2024-10-10 03:43:41 +00:00
30 lines
827 B
Dart
30 lines
827 B
Dart
import 'dart:math';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
class EmptyPage extends StatelessWidget {
|
|
static const double _width = 400;
|
|
const EmptyPage({super.key});
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final width = min(MediaQuery.of(context).size.width, EmptyPage._width) / 2;
|
|
return Scaffold(
|
|
// Add invisible appbar to make status bar on Android tablets bright.
|
|
appBar: AppBar(
|
|
automaticallyImplyLeading: false,
|
|
elevation: 0,
|
|
backgroundColor: Colors.transparent,
|
|
),
|
|
extendBodyBehindAppBar: true,
|
|
body: Container(
|
|
alignment: Alignment.center,
|
|
child: Image.asset(
|
|
'assets/info-logo.png',
|
|
width: width,
|
|
height: width,
|
|
filterQuality: FilterQuality.medium,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|