ES-185:fix scroll issue

fix_some_issue
Elham Rababah 5 years ago
parent 937b73f45f
commit 02763d89d5

@ -48,7 +48,7 @@ class _DeliverdOrdersPageState extends State<DeliverdOrdersPage> {
padding: EdgeInsets.symmetric(horizontal: 12.2), padding: EdgeInsets.symmetric(horizontal: 12.2),
child: OrderInfoCard( child: OrderInfoCard(
order: model.deliverdOrders[index], order: model.deliverdOrders[index],
showStatus: true, // showStatus: true,
onTap: () {}, onTap: () {},
)); ));
}, },

@ -21,13 +21,12 @@ class OrderInfoCard extends StatelessWidget {
showShadow: true, showShadow: true,
raduis: 25.0, raduis: 25.0,
height: MediaQuery.of(context).orientation == Orientation.portrait height: MediaQuery.of(context).orientation == Orientation.portrait
? MediaQuery.of(context).size.height * ? MediaQuery.of(context).size.height * (showStatus ? 0.22 : 0.160)
(showStatus ? 0.190 : 0.140)
: MediaQuery.of(context).size.height * : MediaQuery.of(context).size.height *
(showStatus ? 0.299 : 0.269), (showStatus ? 0.359 : 0.269),
child: FractionallySizedBox( child: FractionallySizedBox(
widthFactor: 0.98, widthFactor: 0.98,
child: ListView( child: Column(
// mainAxisAlignment: MainAxisAlignment.start, // mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [

Loading…
Cancel
Save