@@ -4,24 +4,20 @@ import 'package:threebotlogin/widgets/home_card.dart';
44import 'package:threebotlogin/widgets/home_logo.dart' ;
55
66class RegisteredScreen extends StatefulWidget {
7- static final RegisteredScreen _singleton = RegisteredScreen ._internal ();
7+ static final RegisteredScreen _singleton = const RegisteredScreen ._internal ();
88
99 factory RegisteredScreen () {
1010 return _singleton;
1111 }
1212
13- RegisteredScreen ._internal () {
14- //init
15- }
13+ const RegisteredScreen ._internal ();
1614
1715 @override
1816 State <RegisteredScreen > createState () => _RegisteredScreenState ();
1917}
2018
2119class _RegisteredScreenState extends State <RegisteredScreen >
2220 with WidgetsBindingObserver {
23- // We will treat this error as a singleton
24-
2521 bool showSettings = false ;
2622 bool showPreference = false ;
2723
@@ -31,6 +27,7 @@ class _RegisteredScreenState extends State<RegisteredScreen>
3127 body: SingleChildScrollView (
3228 child: Column (
3329 mainAxisAlignment: MainAxisAlignment .start,
30+ crossAxisAlignment: CrossAxisAlignment .stretch,
3431 children: < Widget > [
3532 SizedBox (
3633 height: MediaQuery .of (context).size.height * 0.3 ,
@@ -51,12 +48,12 @@ class _RegisteredScreenState extends State<RegisteredScreen>
5148 ],
5249 ),
5350 ),
54- Container (
55- padding: const EdgeInsets .only (left: 10 , right: 10 , top: 50 ),
56- height: MediaQuery .of (context).size.height * 0.6 ,
57- width: MediaQuery .of (context).size.width,
51+ Padding (
52+ padding: const EdgeInsets .symmetric (horizontal: 10 ),
5853 child: Column (
5954 mainAxisAlignment: MainAxisAlignment .start,
55+ crossAxisAlignment: CrossAxisAlignment .center,
56+ mainAxisSize: MainAxisSize .min,
6057 children: [
6158 SizedBox (
6259 width: MediaQuery .of (context).size.width / 1.2 ,
@@ -76,7 +73,7 @@ class _RegisteredScreenState extends State<RegisteredScreen>
7673 ]),
7774 ),
7875 ),
79- const Spacer ( ),
76+ const SizedBox (height : 45 ),
8077 const Row (
8178 crossAxisAlignment: CrossAxisAlignment .center,
8279 mainAxisAlignment: MainAxisAlignment .center,
@@ -111,10 +108,26 @@ class _RegisteredScreenState extends State<RegisteredScreen>
111108 name: 'Settings' , icon: Icons .settings, pageNumber: 6 ),
112109 ],
113110 ),
114- const SizedBox (height: 40 ),
115111 const Row (
116- children: [Spacer (), CrispChatbot (), SizedBox (width: 20 )],
117- )
112+ crossAxisAlignment: CrossAxisAlignment .center,
113+ mainAxisAlignment: MainAxisAlignment .center,
114+ children: [
115+ HomeCardWidget (
116+ name: 'Notification Settings' ,
117+ icon: Icons .notifications,
118+ pageNumber: 8 ,
119+ fullWidth: true ,
120+ ),
121+ ],
122+ ),
123+ const SizedBox (height: 70 ),
124+ const Align (
125+ alignment: Alignment .bottomRight,
126+ child: Padding (
127+ padding: EdgeInsets .only (right: 20.0 ),
128+ child: CrispChatbot (),
129+ ),
130+ ),
118131 ],
119132 ),
120133 )
0 commit comments