|
|
|
@ -41,110 +41,111 @@ class InformationPage extends StatelessWidget {
|
|
|
|
topRight: Radius.circular(50.0),
|
|
|
|
topRight: Radius.circular(50.0),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
isScrollControlled: true,
|
|
|
|
context: context,
|
|
|
|
context: context,
|
|
|
|
builder: (BuildContext bc) {
|
|
|
|
builder: (BuildContext bc) {
|
|
|
|
return ListView(
|
|
|
|
return FractionallySizedBox(
|
|
|
|
children: <Widget>[
|
|
|
|
heightFactor: 0.35,
|
|
|
|
Container(
|
|
|
|
child: ListView(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
children: <Widget>[
|
|
|
|
color: Colors.white,
|
|
|
|
Container(
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
topLeft: Radius.circular(50.0),
|
|
|
|
color: Colors.white,
|
|
|
|
topRight: Radius.circular(50.0),
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
),
|
|
|
|
topLeft: Radius.circular(50.0),
|
|
|
|
),
|
|
|
|
topRight: Radius.circular(50.0),
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 10,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Center(
|
|
|
|
),
|
|
|
|
child: Texts(
|
|
|
|
child: Column(
|
|
|
|
TranslationBase.of(context).selectAction,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
color: Colors.black,
|
|
|
|
children: <Widget>[
|
|
|
|
fontSize: 22,
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 10,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Center(
|
|
|
|
SizedBox(
|
|
|
|
child: Texts(
|
|
|
|
height: 10,
|
|
|
|
TranslationBase.of(context).selectAction,
|
|
|
|
),
|
|
|
|
color: Colors.black,
|
|
|
|
FractionallySizedBox(
|
|
|
|
fontSize: 22,
|
|
|
|
widthFactor: MediaQuery.of(context).orientation ==
|
|
|
|
|
|
|
|
Orientation.portrait
|
|
|
|
|
|
|
|
? 0.9
|
|
|
|
|
|
|
|
: 0.98,
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.45,
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
|
|
|
topLeft: Radius.circular(50.0),
|
|
|
|
|
|
|
|
topRight: Radius.circular(50.0),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
width: double.infinity,
|
|
|
|
),
|
|
|
|
child: ListView(
|
|
|
|
SizedBox(
|
|
|
|
children: <Widget>[
|
|
|
|
height: 10,
|
|
|
|
Column(
|
|
|
|
),
|
|
|
|
children: <Widget>[
|
|
|
|
FractionallySizedBox(
|
|
|
|
SizedBox(
|
|
|
|
widthFactor: MediaQuery.of(context).orientation ==
|
|
|
|
height: 3,
|
|
|
|
Orientation.portrait
|
|
|
|
child: Container(
|
|
|
|
? 0.9
|
|
|
|
color: Hexcolor("#D5D5D5"),
|
|
|
|
: 0.98,
|
|
|
|
),
|
|
|
|
child: Container(
|
|
|
|
),
|
|
|
|
height: MediaQuery.of(context).size.height * 0.45,
|
|
|
|
SizedBox(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
height: 15,
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
ActionSheetButton(
|
|
|
|
topLeft: Radius.circular(50.0),
|
|
|
|
label:
|
|
|
|
topRight: Radius.circular(50.0),
|
|
|
|
TranslationBase
|
|
|
|
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.delivered,
|
|
|
|
|
|
|
|
icon: DriverApp.deliverd_icon,
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
selectAction(context, 2, model);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 15),
|
|
|
|
|
|
|
|
// ActionSheetButton(
|
|
|
|
|
|
|
|
// label: TranslationBase.of(context)
|
|
|
|
|
|
|
|
// .deliveredAccepted,
|
|
|
|
|
|
|
|
// icon: DriverApp.not_available,
|
|
|
|
|
|
|
|
// onTap: () {
|
|
|
|
|
|
|
|
// selectAction(context, 4, model);
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// SizedBox(height: 15),
|
|
|
|
|
|
|
|
ActionSheetButton(
|
|
|
|
|
|
|
|
label: TranslationBase
|
|
|
|
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.deliveredRejected,
|
|
|
|
|
|
|
|
icon: DriverApp.rejected_icon,
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
selectAction(context, 3, model);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 15),
|
|
|
|
|
|
|
|
// ActionSheetButton(
|
|
|
|
|
|
|
|
// label: TranslationBase.of(context).canceled,
|
|
|
|
|
|
|
|
// icon: DriverApp.not_reachable_icon,
|
|
|
|
|
|
|
|
// onTap: () {
|
|
|
|
|
|
|
|
// selectAction(context, 6, model);
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// SizedBox(height: 15),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
child: ListView(
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 3,
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
color: Hexcolor("#D5D5D5"),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 15,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
ActionSheetButton(
|
|
|
|
|
|
|
|
label:
|
|
|
|
|
|
|
|
TranslationBase.of(context).delivered,
|
|
|
|
|
|
|
|
icon: DriverApp.deliverd_icon,
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
selectAction(context, 2, model);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 15),
|
|
|
|
|
|
|
|
// ActionSheetButton(
|
|
|
|
|
|
|
|
// label: TranslationBase.of(context)
|
|
|
|
|
|
|
|
// .deliveredAccepted,
|
|
|
|
|
|
|
|
// icon: DriverApp.not_available,
|
|
|
|
|
|
|
|
// onTap: () {
|
|
|
|
|
|
|
|
// selectAction(context, 4, model);
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// SizedBox(height: 15),
|
|
|
|
|
|
|
|
ActionSheetButton(
|
|
|
|
|
|
|
|
label: TranslationBase.of(context)
|
|
|
|
|
|
|
|
.deliveredRejected,
|
|
|
|
|
|
|
|
icon: DriverApp.rejected_icon,
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
selectAction(context, 3, model);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 15),
|
|
|
|
|
|
|
|
// ActionSheetButton(
|
|
|
|
|
|
|
|
// label: TranslationBase.of(context).canceled,
|
|
|
|
|
|
|
|
// icon: DriverApp.not_reachable_icon,
|
|
|
|
|
|
|
|
// onTap: () {
|
|
|
|
|
|
|
|
// selectAction(context, 6, model);
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// SizedBox(height: 15),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|