Files
tatuchat/lib/widgets/layouts/empty_page.dart
Welton Moura 0037b0b9cf
Some checks failed
Main Deploy Workflow / deploy_web (push) Has been cancelled
Main Deploy Workflow / deploy_playstore_internal (push) Has been cancelled
Close stale issues and PRs / stale (push) Has been cancelled
Initial commit
2026-09-11 15:59:56 -03:00

38 lines
1.1 KiB
Dart

// SPDX-FileCopyrightText: 2019-Present Christian Kußowski
// SPDX-FileCopyrightText: 2019-Present Contributors to FluffyChat
//
// SPDX-License-Identifier: AGPL-3.0-or-later
import 'dart:math';
import 'package:material_ui/material_ui.dart';
class EmptyPage extends StatelessWidget {
static const double _width = 400;
const EmptyPage({super.key});
@override
Widget build(BuildContext context) {
final width = min(MediaQuery.sizeOf(context).width, EmptyPage._width) / 2;
final theme = Theme.of(context);
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/logo/mini/logo_mono_mini.png',
color: theme.colorScheme.surfaceContainerHigh,
width: width,
height: width,
filterQuality: FilterQuality.medium,
),
),
);
}
}