Customer Card design update

updates_new
hussam al-habibeh 5 years ago
parent b354934ba3
commit 12f40c4324

@ -502,7 +502,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
if (model.state == ViewState.Idle) if (model.state == ViewState.Idle)
model.orders.length == 0 model.orders.length == 0
? Text("There's No Orders To deliver") ? Text("There's No Orders To deliver")
: Text(""), : SizedBox(),
NetworkBaseView( NetworkBaseView(
baseViewModel: model, baseViewModel: model,
child: Expanded( child: Expanded(

@ -31,7 +31,7 @@ class _DeliverdOrdersPageState extends State<DeliverdOrdersPage> {
if (model.state == ViewState.Idle) if (model.state == ViewState.Idle)
model.deliverdOrders.length == 0 model.deliverdOrders.length == 0
? Text("There's No Orders To deliver") ? Text("There's No Orders To deliver")
: Text(''), : SizedBox(),
NetworkBaseView( NetworkBaseView(
baseViewModel: model, baseViewModel: model,
child: Expanded( child: Expanded(

@ -32,7 +32,7 @@ class _OrdersListScreenState extends State<OrdersListScreen> {
if (model.state == ViewState.Idle) if (model.state == ViewState.Idle)
model.orders.length == 0 model.orders.length == 0
? Text("There's No Orders To deliver") ? Text("There's No Orders To deliver")
: Text(""), : SizedBox(),
Expanded( Expanded(
child: ListView.builder( child: ListView.builder(
shrinkWrap: true, shrinkWrap: true,

@ -45,7 +45,7 @@ class CustomerBriefCard extends StatelessWidget {
width: MediaQuery.of(context).orientation == Orientation.landscape width: MediaQuery.of(context).orientation == Orientation.landscape
? SizeConfig.widthMultiplier * 125.0 ? SizeConfig.widthMultiplier * 125.0
: SizeConfig.widthMultiplier * 90.0, : SizeConfig.widthMultiplier * 90.0,
height: 290, height: SizeConfig.heightMultiplier * 33.0, // TODO make it responsive
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
@ -66,6 +66,7 @@ class CustomerBriefCard extends StatelessWidget {
padding: EdgeInsets.only(left: 30, top: 20, right: 30), padding: EdgeInsets.only(left: 30, top: 20, right: 30),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Row( Row(
children: <Widget>[ children: <Widget>[
@ -81,7 +82,7 @@ class CustomerBriefCard extends StatelessWidget {
), ),
Expanded( Expanded(
child: Padding( child: Padding(
padding: EdgeInsets.all(8.0), padding: EdgeInsets.all(2.0),
child: DistanceInKilometers( child: DistanceInKilometers(
distanceInKilometers: distanceInKilometers, distanceInKilometers: distanceInKilometers,
), ),
@ -89,29 +90,34 @@ class CustomerBriefCard extends StatelessWidget {
), ),
], ],
), ),
SizedBox( Column(
height: MediaQuery.of(context).size.width * 0.02, crossAxisAlignment: CrossAxisAlignment.start,
), mainAxisAlignment: MainAxisAlignment.spaceEvenly,
Text( children: <Widget>[
Utils.formatStringToPascalCase( Text(
'${customerFirstName} ${customerLastName}'), Utils.formatStringToPascalCase(
style: TextStyle( '${customerFirstName} ${customerLastName}'),
color: Color(0xff343333), style: TextStyle(
fontWeight: FontWeight.bold, color: Color(0xff343333),
fontSize: 20.0, fontWeight: FontWeight.bold,
), fontSize: 20.0,
), ),
SizedBox( ),
height: MediaQuery.of(context).size.width * 0.019, // SizedBox(
), // height: MediaQuery.of(context).size.width * 0.00,
Text( // ),
mobileNo, Text(
style: TextStyle( mobileNo,
color: Color(0xff14A0A9), fontWeight: FontWeight.w400), style: TextStyle(
), color: Color(0xff14A0A9),
SizedBox( fontWeight: FontWeight.w400),
height: MediaQuery.of(context).size.width * 0.005, ),
SizedBox(
height: MediaQuery.of(context).size.width * 0.005,
),
],
), ),
// Text( // Text(
// 'Olaya street, behind KFC resturant, next to kingdom towers 2nd floor ofice 277', // 'Olaya street, behind KFC resturant, next to kingdom towers 2nd floor ofice 277',
// style: TextStyle( // style: TextStyle(

Loading…
Cancel
Save