@@ -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,
@@ -119,10 +116,26 @@ class _RegisteredScreenState extends State<RegisteredScreen>
119116 name: 'Settings' , icon: Icons .settings, pageNumber: 6 ),
120117 ],
121118 ),
122- const SizedBox (height: 40 ),
123119 const Row (
124- children: [Spacer (), CrispChatbot (), SizedBox (width: 20 )],
125- )
120+ crossAxisAlignment: CrossAxisAlignment .center,
121+ mainAxisAlignment: MainAxisAlignment .center,
122+ children: [
123+ HomeCardWidget (
124+ name: 'Notification Settings' ,
125+ icon: Icons .notifications,
126+ pageNumber: 8 ,
127+ fullWidth: true ,
128+ ),
129+ ],
130+ ),
131+ const SizedBox (height: 70 ),
132+ const Align (
133+ alignment: Alignment .bottomRight,
134+ child: Padding (
135+ padding: EdgeInsets .only (right: 20.0 ),
136+ child: CrispChatbot (),
137+ ),
138+ ),
126139 ],
127140 ),
128141 )
0 commit comments