Skip to content

Commit

Permalink
Add MaintenancePage to display maintenance message during downtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Mozart299 committed Dec 10, 2024
1 parent 29bfa8b commit 5bbe81a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions mobile-v3/lib/src/app/shared/pages/maintenance_page.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';

class MaintenancePage extends StatelessWidget {
const MaintenancePage({super.key});

@override
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (context, constraints) {
double maxWidth = constraints.maxWidth;
double maxHeight = constraints.maxHeight;

return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SvgPicture.asset(
'assets/icons/error_occured.svg',
width: maxWidth * 0.5,
height: maxWidth * 0.5,
),
SizedBox(height: maxHeight * 0.05),
Text(
"The app is currently under maintenance",
style: Theme.of(context).textTheme.headlineLarge!.copyWith(
fontSize: maxWidth * 0.06,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: maxHeight * 0.02),
Text(
"We're having issues with our network\nno worries, we'll be back up soon.",
textAlign: TextAlign.center,
style: TextStyle(
fontSize: maxWidth * 0.04,
),
),
],
);
},
);
}
}

0 comments on commit 5bbe81a

Please sign in to comment.