add scroll for landscape

setting_branch
enadhilal 5 years ago
parent 6ecda69726
commit 9bc404fa2a

@ -13,114 +13,116 @@ class SettingPage extends StatelessWidget {
appBarColor: Color(0xff30B7B9), appBarColor: Color(0xff30B7B9),
arrowColor: Colors.white, arrowColor: Colors.white,
titleColor: Colors.white, titleColor: Colors.white,
body: Column( body: SingleChildScrollView(
children: <Widget>[ child: Column(
Container( children: <Widget>[
width: double.infinity, Container(
child: Column( width: double.infinity,
children: <Widget>[ child: Column(
Container( children: <Widget>[
width: MediaQuery.of(context).size.width, Container(
height: MediaQuery.of(context).size.width * 0.7, width: MediaQuery.of(context).size.width,
child: CircleAvatar( height: MediaQuery.of(context).size.width * 0.7,
radius: 25.5,
backgroundColor: Theme.of(context).primaryColor,
child: CircleAvatar( child: CircleAvatar(
radius: 25.5,
backgroundColor: Theme.of(context).primaryColor, backgroundColor: Theme.of(context).primaryColor,
maxRadius: 200.0, child: CircleAvatar(
child: Image.asset( backgroundColor: Theme.of(context).primaryColor,
'assets/images/driver.png', maxRadius: 200.0,
height: 280, child: Image.asset(
width: 280, 'assets/images/driver.png',
fit: BoxFit.contain, height: 280,
width: 280,
fit: BoxFit.contain,
),
), ),
), ),
), ),
), SizedBox(height: 10,),
SizedBox(height: 10,), Container(
Container( child: Text('Driver Name', style: TextStyle(fontSize: 40, fontWeight: FontWeight.w600, color: Colors.white),),
child: Text('Driver Name', style: TextStyle(fontSize: 40, fontWeight: FontWeight.w600, color: Colors.white),), ),
), SizedBox(height: 10,),
SizedBox(height: 10,), Container(
Container( child: Text('ID: 123456789', style: TextStyle(fontSize: 20, color: Colors.white),),
child: Text('ID: 123456789', style: TextStyle(fontSize: 20, color: Colors.white),), ),
), ],
], ),
), ),
), SizedBox(height: 50,),
SizedBox(height: 50,), Container(
Container( margin: EdgeInsets.only(left: 35),
margin: EdgeInsets.only(left: 35), child: Column(
child: Column( crossAxisAlignment: CrossAxisAlignment.stretch,
crossAxisAlignment: CrossAxisAlignment.stretch, children: <Widget>[
children: <Widget>[ InkWell(
InkWell( child: Column(
child: Column( crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[
children: <Widget>[ Container(
Container( margin: EdgeInsets.only(left: 15),
margin: EdgeInsets.only(left: 15), child: Row(
child: Row( children: <Widget>[
children: <Widget>[ Icon(
Icon( Icons.input,
Icons.input, size: 40,
size: 40, color: Colors.white,
),
SizedBox(width: 20,),
Text('Log out', style: TextStyle(fontWeight: FontWeight.w500, color: Colors.white, fontSize: 18),),
],
),
),
SizedBox(
height: 10.0,
child: Center(
child: Container(
margin: EdgeInsetsDirectional.only(start: 0, end: 30),
height: 1.0,
color: Colors.white, color: Colors.white,
), ),
SizedBox(width: 20,),
Text('Log out', style: TextStyle(fontWeight: FontWeight.w500, color: Colors.white, fontSize: 18),),
],
),
),
SizedBox(
height: 10.0,
child: Center(
child: Container(
margin: EdgeInsetsDirectional.only(start: 0, end: 30),
height: 1.0,
color: Colors.white,
), ),
), ),
), ],
], ),
), ),
), SizedBox(height: 8,),
SizedBox(height: 8,), InkWell(
InkWell( child: Column(
child: Column( crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[
children: <Widget>[ Container(
Container( margin: EdgeInsets.only(left: 15),
margin: EdgeInsets.only(left: 15), child: Row(
child: Row( children: <Widget>[
children: <Widget>[ Icon(
Icon( Icons.settings,
Icons.settings, size: 40,
size: 40, color: Colors.white,
),
SizedBox(width: 20,),
Text('Settings', style: TextStyle(fontWeight: FontWeight.w500, color: Colors.white, fontSize: 18),),
],
),
),
SizedBox(
height: 10.0,
child: Center(
child: Container(
margin: EdgeInsetsDirectional.only(start: 0, end: 30),
height: 1.0,
color: Colors.white, color: Colors.white,
), ),
SizedBox(width: 20,),
Text('Settings', style: TextStyle(fontWeight: FontWeight.w500, color: Colors.white, fontSize: 18),),
],
),
),
SizedBox(
height: 10.0,
child: Center(
child: Container(
margin: EdgeInsetsDirectional.only(start: 0, end: 30),
height: 1.0,
color: Colors.white,
), ),
), ),
), ],
], ),
), ),
), ],
], ),
), ),
), ],
], ),
), ),
); );
} }

Loading…
Cancel
Save