Last active
February 18, 2021 20:22
This file contains hidden or 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
Widget build(BuildContext context) { | |
UserDetails _user = widget.user; | |
double width = MediaQuery.of(context).size.width; | |
double height = MediaQuery.of(context).size.height; | |
return Scaffold( | |
appBar: AppBar( | |
title: Text("Profile Page"), | |
centerTitle: true, | |
), | |
body: ListView( | |
shrinkWrap: true, | |
children: [ | |
Container( | |
width: width, | |
height: height * 0.5, | |
child: Stack( | |
children: [ | |
Align( | |
alignment: Alignment.center, | |
child: Card( | |
margin: const EdgeInsets.all(20.0), | |
child: Container( | |
width: width * 0.8, | |
height: height * 0.30, | |
child: Column( | |
mainAxisSize: MainAxisSize.max, | |
mainAxisAlignment: MainAxisAlignment.end, | |
children: [ | |
ListTile( | |
leading: Icon(Icons.alternate_email), | |
title: AutoSizeText( | |
_user.email, | |
maxFontSize: 23, | |
minFontSize: 17, | |
maxLines: 1, | |
softWrap: true, | |
style: TextStyle( | |
fontWeight: FontWeight.bold, | |
), | |
), | |
), | |
ListTile( | |
leading: Icon(Icons.phone), | |
title: AutoSizeText( | |
(userPhone == "" || userPhone == null) | |
? "You haven't entered a phone nmuber" | |
: userPhone, | |
maxFontSize: 23, | |
minFontSize: 17, | |
maxLines: 1, | |
softWrap: true, | |
style: TextStyle( | |
fontWeight: FontWeight.bold, | |
), | |
), | |
), | |
// ListTile( | |
// leading: Icon(Icons.receipt_long), | |
// title: AutoSizeText( | |
// //TODO:- implement OrdersProvider | |
// "Orders :- 0", | |
// maxFontSize: 23, | |
// minFontSize: 17, | |
// maxLines: 1, | |
// softWrap: true, | |
// style: TextStyle( | |
// fontWeight: FontWeight.bold, | |
// ), | |
// ), | |
// ), | |
], | |
), | |
), | |
), | |
), | |
Positioned( | |
top: height * 0.01, | |
left: (width / 2) - 80, | |
child: Container( | |
child: Column( | |
children: [ | |
Card( | |
shape: CircleBorder(), | |
elevation: 10.0, | |
child: CircleAvatar( | |
radius: 80, | |
backgroundImage: CachedNetworkImageProvider( | |
_user.picURL, | |
), | |
), | |
), | |
Padding( | |
padding: const EdgeInsets.all(10.0), | |
child: AutoSizeText( | |
_user.userName, | |
maxFontSize: 23, | |
minFontSize: 19, | |
maxLines: 1, | |
softWrap: true, | |
style: TextStyle( | |
fontWeight: FontWeight.bold, | |
), | |
), | |
), | |
], | |
), | |
), | |
), | |
], | |
), | |
), | |
PeopleBookFeedBack(), | |
PeopleBookFeedBack(), | |
], | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment