fluffychat/lib/widgets/layouts/empty_page.dart

31 lines
827 B
Dart
Raw Permalink Normal View History

import 'dart:math';
2020-12-06 11:51:40 +00:00
import 'package:flutter/material.dart';
class EmptyPage extends StatelessWidget {
2023-12-25 17:36:04 +00:00
static const double _width = 400;
2023-12-24 12:46:29 +00:00
const EmptyPage({super.key});
2020-12-06 11:51:40 +00:00
@override
Widget build(BuildContext context) {
2022-12-25 09:45:13 +00:00
final width = min(MediaQuery.of(context).size.width, EmptyPage._width) / 2;
2020-12-06 11:51:40 +00:00
return Scaffold(
// Add invisible appbar to make status bar on Android tablets bright.
appBar: AppBar(
automaticallyImplyLeading: false,
elevation: 0,
2023-12-24 12:46:29 +00:00
backgroundColor: Colors.transparent,
),
extendBodyBehindAppBar: true,
2023-12-24 12:46:29 +00:00
body: Container(
alignment: Alignment.center,
child: Image.asset(
2023-12-25 17:36:04 +00:00
'assets/info-logo.png',
2023-12-24 12:46:29 +00:00
width: width,
height: width,
filterQuality: FilterQuality.medium,
),
2020-12-06 11:51:40 +00:00
),
);
}
}