@@ -48,7 +48,7 @@ class AvatarNameTile extends StatelessWidget {
4848 child: ListTile (
4949 titleAlignment: ListTileTitleAlignment .top,
5050 title: Padding (
51- padding: const EdgeInsets .only (top: 8 ),
51+ padding: const EdgeInsets .only (top: 4 ),
5252 child: _UserAvatar (),
5353 ),
5454 subtitle: Padding (
@@ -66,46 +66,58 @@ class ProfileCard extends StatelessWidget {
6666 Widget build (BuildContext context) {
6767 return Padding (
6868 padding: EdgeInsets .only (bottom: Platform .isIOS ? 0.0 : 4.0 ),
69- child: const SizedBox (
70- width: double .infinity,
71- child: Card (
72- child: Padding (
73- padding: EdgeInsets .all (15 ),
74- child: Stack (
75- children: [
76- Card (
77- color: paleMallow,
78- margin: EdgeInsets .only (top: 60 ),
79- child: Padding (
80- padding: EdgeInsets .only (top: 100 , left: 4 , right: 4 ),
81- child: Column (
82- mainAxisSize: MainAxisSize .min,
83- children: [
84- ConnectionChecker (child: _UsernameForm ()),
85- SizedBox (height: columnItemMargin),
86- ConnectionChecker (child: _PhoneForm ()),
87- SizedBox (height: columnItemMargin),
88- ConnectionChecker (child: _EmailForm ()),
89- SizedBox (height: columnItemMargin),
90- ConnectionChecker (child: _AccountForm ()),
91- ],
92- ),
93- ),
94- ),
95- Align (alignment: Alignment .bottomRight, child: _LogoutForm ()),
96- Align (
97- alignment: Alignment .topCenter,
98- child: ConnectionChecker (child: AvatarNameTile ()),
99- ),
100- ],
101- ),
69+ child: Card (
70+ child: Padding (
71+ padding: const EdgeInsets .all (15 ),
72+ child: Stack (
73+ children: [
74+ _UserData (),
75+ const Align (
76+ alignment: Alignment .bottomRight, child: _LogoutForm ()),
77+ ],
10278 ),
10379 ),
10480 ),
10581 );
10682 }
10783}
10884
85+ class _UserData extends StatelessWidget {
86+ @override
87+ Widget build (BuildContext context) {
88+ return const Align (
89+ alignment: Alignment (0 , - 0.5 ),
90+ child: IntrinsicHeight (
91+ child: Stack (
92+ children: [
93+ Card (
94+ color: paleMallow,
95+ margin: EdgeInsets .only (top: 40 ),
96+ child: Padding (
97+ padding: EdgeInsets .only (top: 100 , left: 4 , right: 4 ),
98+ child: Column (
99+ mainAxisSize: MainAxisSize .min,
100+ children: [
101+ ConnectionChecker (child: _UsernameForm ()),
102+ SizedBox (height: columnItemMargin),
103+ ConnectionChecker (child: _PhoneForm ()),
104+ SizedBox (height: columnItemMargin),
105+ ConnectionChecker (child: _EmailForm ()),
106+ SizedBox (height: columnItemMargin),
107+ ConnectionChecker (child: _AccountForm ()),
108+ ],
109+ ),
110+ ),
111+ ),
112+ Align (
113+ alignment: Alignment (0 , - 1.1 ),
114+ child: ConnectionChecker (child: AvatarNameTile ()),
115+ ),
116+ ],
117+ )));
118+ }
119+ }
120+
109121class _UserAvatar extends StatelessWidget {
110122 @override
111123 Widget build (BuildContext context) {
@@ -435,6 +447,7 @@ class NameDialogInput extends StatelessWidget {
435447 ),
436448 ),
437449 ]),
450+ actionsAlignment: MainAxisAlignment .spaceAround,
438451 actions: _formActions (context));
439452 });
440453 }
@@ -493,7 +506,7 @@ class InfoDialogInput extends StatelessWidget {
493506 ),
494507 errorText: state.userPhone.displayError ==
495508 UserPhoneValidationError .outOfRange
496- ? 'The phone number should be 3 to 15 digits in length .'
509+ ? 'The phone range 3 to 15 digits.'
497510 : null ,
498511 ),
499512 ),
@@ -538,6 +551,7 @@ class InfoDialogInput extends StatelessWidget {
538551 ),
539552 ),
540553 ]),
554+ actionsAlignment: MainAxisAlignment .spaceAround,
541555 actions: _formActions (context));
542556 });
543557 }
@@ -640,6 +654,7 @@ class _ChangePasswordInput extends StatelessWidget {
640654 ),
641655 ),
642656 ]),
657+ actionsAlignment: MainAxisAlignment .spaceAround,
643658 actions: _formActions (context));
644659 });
645660 }
0 commit comments