-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #226 from SayedZeeshanHyder/main
Added Maintainance Screen
- Loading branch information
Showing
4 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
lib/new_ui/screens/Maintainance_Screen/maintainance_screen.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import 'package:cloud_firestore/cloud_firestore.dart'; | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/painting.dart'; | ||
import 'package:go_router/go_router.dart'; | ||
import 'package:lottie/lottie.dart'; | ||
|
||
class MaintainanceScreen extends StatefulWidget { | ||
|
||
@override | ||
State<MaintainanceScreen> createState() => _MaintainanceScreenState(); | ||
} | ||
|
||
class _MaintainanceScreenState extends State<MaintainanceScreen> { | ||
|
||
|
||
@override | ||
Widget build(BuildContext context) { | ||
Size size = MediaQuery.of(context).size; | ||
return Scaffold( | ||
body:Center( | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children:[ | ||
Container( | ||
height: size.height*0.3, | ||
width:size.width*0.8, | ||
child: Lottie.asset("assets/animation/maintainance.json",fit: BoxFit.fill), | ||
), | ||
RichText( | ||
text: TextSpan(children: [ | ||
TextSpan(text:"Sorry App Under Maintainance ",style: TextStyle(color: Colors.white),), | ||
WidgetSpan(child: Icon(Icons.warning,color: Colors.yellow,),), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters