PAP-576: fix design

merge-update-with-lab-changes
Elham Rababah 5 years ago
parent fa23c607bd
commit 2e035e2c6b

@ -124,7 +124,7 @@ class _AmbulanceRequestIndexPageState extends State<AmbulanceRequestIndexPage> {
: Column( : Column(
children: [ children: [
SizedBox( SizedBox(
height: 80, height: 20,
), ),
Container( Container(
margin: EdgeInsets.only(left: 12, right: 12), margin: EdgeInsets.only(left: 12, right: 12),

@ -210,71 +210,77 @@ class _SelectTransportationMethodState
SizedBox( SizedBox(
height: 5, height: 5,
), ),
Row( Container(
children: [ margin: EdgeInsets.only(bottom:65 ),
Expanded( child: Row(
child: InkWell( children: [
onTap: () { Expanded(
setState(() { child: InkWell(
_way = Way.OneWay; onTap: () {
}); setState(() {
}, _way = Way.OneWay;
child: Container( });
decoration: BoxDecoration( },
shape: BoxShape.rectangle, child: Container(
borderRadius: BorderRadius.circular(8), decoration: BoxDecoration(
border: shape: BoxShape.rectangle,
Border.all(color: Colors.grey, width: 0.5), borderRadius: BorderRadius.circular(8),
color: Colors.white, border:
), Border.all(color: Colors.grey, width: 0.5),
child: ListTile( color: Colors.white,
title: ),
Texts(TranslationBase.of(context).oneDirec), child: ListTile(
leading: Radio( title:
value: Way.OneWay, Texts(TranslationBase.of(context).oneDirec),
groupValue: _way, leading: Radio(
onChanged: (value) { value: Way.OneWay,
setState(() { groupValue: _way,
_way = value; onChanged: (value) {
}); setState(() {
}, _way = value;
});
},
),
), ),
), ),
), ),
), ),
), Expanded(
Expanded( child: InkWell(
child: InkWell( onTap: () {
onTap: () { setState(() {
setState(() { _way = Way.TwoWays;
_way = Way.TwoWays; });
}); },
}, child: Container(
child: Container( decoration: BoxDecoration(
decoration: BoxDecoration( shape: BoxShape.rectangle,
shape: BoxShape.rectangle, borderRadius: BorderRadius.circular(8),
borderRadius: BorderRadius.circular(8), border:
border: Border.all(color: Colors.grey, width: 0.5),
Border.all(color: Colors.grey, width: 0.5), color: Colors.white,
color: Colors.white, ),
), child: ListTile(
child: ListTile( title:
title: Texts(TranslationBase.of(context).twoDirec),
Texts(TranslationBase.of(context).twoDirec), leading: Radio(
leading: Radio( value: Way.TwoWays,
value: Way.TwoWays, groupValue: _way,
groupValue: _way, onChanged: (value) {
onChanged: (value) { setState(() {
setState(() { _way = value;
_way = value; });
}); },
}, ),
), ),
), ),
), ),
), ),
), ],
], ),
),
SizedBox(
height: 30,
), ),
], ],
), ),

Loading…
Cancel
Save