Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Thinzar Win
2020-06-30 16:28:53 +06:30
11 changed files with 76 additions and 48 deletions

View File

@@ -50,8 +50,13 @@ class _DiscountEditorState extends State<DiscountEditor> {
child: Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
centerTitle: true,
title: Text(
AppTranslations.of(context).text("discount.new"),
AppTranslations.of(context).text("discount.form"),
),
leading: new IconButton(
icon: new Icon(Icons.close),
onPressed: () => Navigator.of(context).pop(),
),
backgroundColor: primaryColor,
actions: <Widget>[],

View File

@@ -24,9 +24,14 @@ class _DiscountListState extends State<DiscountList> {
inAsyncCall: _isLoading,
child: Scaffold(
appBar: AppBar(
centerTitle: true,
title: Text(
AppTranslations.of(context).text("discount.title"),
),
leading: new IconButton(
icon: new Icon(Icons.close),
onPressed: () => Navigator.of(context).pop(),
),
backgroundColor: primaryColor,
actions: <Widget>[
IconButton(
@@ -52,7 +57,7 @@ class _DiscountListState extends State<DiscountList> {
);
},
child: Padding(
padding: const EdgeInsets.all(8.0),
padding: const EdgeInsets.all(10.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
@@ -61,12 +66,15 @@ class _DiscountListState extends State<DiscountList> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
discount.code,
style: TextStyle(
color: primaryColor,
fontSize: 16,
fontWeight: FontWeight.bold,
Padding(
padding: const EdgeInsets.only(bottom: 8.0),
child: Text(
discount.code,
style: TextStyle(
color: primaryColor,
fontSize: 16,
fontWeight: FontWeight.bold,
),
),
),
Row(
@@ -86,17 +94,17 @@ class _DiscountListState extends State<DiscountList> {
Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: <Widget>[
getStatus(discount.status),
Padding(
padding: const EdgeInsets.only(left: 10.0),
padding: const EdgeInsets.only(left: 10.0,bottom: 5.0),
child: Text(
'\$${discount.amount.toString()}',
'\$ ${discount.amount.toString()}',
style: TextStyle(
color: Colors.black,
fontWeight: FontWeight.normal,
fontSize: 15),
fontWeight: FontWeight.bold,
fontSize: 16),
),
),
getStatus(discount.status),
],
),
],

View File

@@ -56,8 +56,13 @@ class _PaymentMethodEditorState extends State<PaymentMethodEditor> {
child: Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
centerTitle: true,
leading: new IconButton(
icon: new Icon(Icons.close),
onPressed: () => Navigator.of(context).pop(),
),
title: Text(
AppTranslations.of(context).text("payment.method.new"),
AppTranslations.of(context).text("payment.method.form"),
),
backgroundColor: primaryColor,
actions: <Widget>[],
@@ -79,8 +84,7 @@ class _PaymentMethodEditorState extends State<PaymentMethodEditor> {
// controller: _mailController),
// fcsInput('Phone', Icons.phone,
// controller: _phoneController),
fcsInput('Phone', Icons.link,
controller: _linkController)
fcsInput('Phone', Icons.link, controller: _linkController)
],
),
),

View File

@@ -23,6 +23,11 @@ class _PaymentMethodPageState extends State<PaymentMethodPage> {
inAsyncCall: _isLoading,
child: Scaffold(
appBar: AppBar(
leading: new IconButton(
icon: new Icon(Icons.close),
onPressed: () => Navigator.of(context).pop(),
),
centerTitle: true,
title: Text(
AppTranslations.of(context).text("payment.method.title"),
),

View File

@@ -318,7 +318,7 @@ class _ProfileState extends State<Profile> {
padding: EdgeInsets.only(top: 5, left: 10),
child: ExpansionTile(
title: Text(
"Shipping Addresses",
"My Addresses",
style: TextStyle(
fontWeight: FontWeight.bold, fontStyle: FontStyle.normal),
),
@@ -343,7 +343,7 @@ class _ProfileState extends State<Profile> {
},
icon: Icon(Icons.add),
label: Text(
'Add Shipping\nAddress',
'Add New\nAddress',
style: TextStyle(fontSize: 12),
),
backgroundColor: primaryColor,

View File

@@ -237,7 +237,7 @@ class _ShipmentEditorState extends State<ShipmentEditor> {
child: Container(
width: 250,
child: FlatButton(
child: Text('Create Shipment'),
child: Text('Create FCS Shipment'),
color: primaryColor,
textColor: Colors.white,
onPressed: () {
@@ -254,7 +254,7 @@ class _ShipmentEditorState extends State<ShipmentEditor> {
child: Container(
width: 250,
child: FlatButton(
child: Text('Update Shipment'),
child: Text('Update FCS Shipment'),
color: primaryColor,
textColor: Colors.white,
onPressed: () {
@@ -284,7 +284,7 @@ class _ShipmentEditorState extends State<ShipmentEditor> {
child: ListView(children: <Widget>[
// _showCustomerData(mainModel.customer),
widget.shipment == null
? fcsInput('Shipment Number', Ionicons.ios_airplane,
? fcsInput('FCS Shipment Number', Ionicons.ios_airplane,
controller: _shipmentNumberController)
: Container(
child: TextFormField(
@@ -292,7 +292,7 @@ class _ShipmentEditorState extends State<ShipmentEditor> {
readOnly: true,
decoration: InputDecoration(
fillColor: Colors.white,
labelText: 'Shipment Number',
labelText: 'FCS Shipment Number',
labelStyle:
TextStyle(fontSize: 16, color: Colors.grey),
filled: true,
@@ -328,7 +328,7 @@ class _ShipmentEditorState extends State<ShipmentEditor> {
child: DropdownButtonFormField(
decoration: InputDecoration(
fillColor: Colors.white,
labelText: 'Shipment Type',
labelText: 'FCS Shipment Type',
icon: Icon(Ionicons.ios_airplane,
color: primaryColor)),
items: shipmentModel.shipmentType

View File

@@ -180,7 +180,7 @@ class _BoxEditorState extends State<BoxEditor> {
value: _box.shipmentNumber,
decoration: InputDecoration(
fillColor: Colors.white,
labelText: 'Shipment Number',
labelText: 'FCS Shipment Number',
icon: Icon(Ionicons.ios_airplane,
color: primaryColor)
// prefixIcon: Icon(Icons.play_arrow)
@@ -439,7 +439,7 @@ class _BoxEditorState extends State<BoxEditor> {
onPressed: () {},
icon: Icon(Icons.add),
label: Text(
'Add Shipping\nAddress',
'Select \nAddress',
style: TextStyle(fontSize: 12),
),
backgroundColor: primaryColor,

View File

@@ -556,7 +556,7 @@ class _PackageEditorState extends State<PackageEditor> {
},
icon: Icon(Icons.add),
label: Text(
'Add Shipping\nAddress',
'Select \nAddress',
style: TextStyle(fontSize: 12),
),
backgroundColor: primaryColor,

View File

@@ -42,7 +42,7 @@ class _ShippingAddressListState extends State<ShippingAddressList> {
onPressed: () => Navigator.of(context).pop(),
),
backgroundColor: primaryColor,
title: Text(AppTranslations.of(context).text("shipping_address")),
title: Text(AppTranslations.of(context).text("shipping_addresses")),
actions: <Widget>[
IconButton(
icon: Icon(
@@ -79,7 +79,7 @@ class _ShippingAddressListState extends State<ShippingAddressList> {
},
icon: Icon(Icons.add),
label: Text(
'Add Shipping\nAddress',
'Add New\nAddress',
style: TextStyle(fontSize: 12),
),
backgroundColor: primaryColor,