This commit is contained in:
PhyoThandar
2020-06-02 15:21:26 +06:30
parent 4a5488e9c7
commit 89df7a716b
5 changed files with 37 additions and 61 deletions

View File

@@ -30,14 +30,6 @@ class _ShipmentRatesEditState extends State<ShipmentRatesEdit> {
PickUp _pickUp;
bool _isLoading = false;
List<String> texts = [
"Minimum shipping weight is 1lbs.",
"Oversized goods, Light weight/Large volume items, laptops, phones, tablets may incur extra charges based on specifications. Please contact us for pricing.",
"Goods with lithium battary needs extra packaging and declaration. Please inform us ahead of time so that we can process your package accordingly.",
"Loose Batteries, Drones, and Prescription medicines are not allowed on aircraft.",
"Payment: We accept money orders, any US bank transfers via Zelle, AYA, KBZ and CB. No COD except for pick-ups.",
"Payments made in Myanmar will incur 2% tranfer fee"
];
@override
void initState() {
@@ -61,14 +53,6 @@ class _ShipmentRatesEditState extends State<ShipmentRatesEdit> {
Widget build(BuildContext context) {
var shipmentRateModel = Provider.of<ShipmentRateModel>(context);
var textList = texts
.map(
(e) => TextSpan(
text: "\n * " + e + "\n",
style: TextStyle(fontWeight: FontWeight.normal, fontSize: 13)),
)
.toList();
return LocalProgress(
inAsyncCall: _isLoading,
child: Scaffold(
@@ -88,7 +72,7 @@ class _ShipmentRatesEditState extends State<ShipmentRatesEdit> {
child: ListView(
children: <Widget>[
Container(
height: 145,
height: 190,
child: ListView.builder(
itemCount: shipmentRateModel.rates.length,
itemBuilder: (context, index) {
@@ -103,16 +87,7 @@ class _ShipmentRatesEditState extends State<ShipmentRatesEdit> {
FontAwesomeIcons.weightHanging,
value: "10"),
fcsInput("Delivery fees", Icons.attach_money, value: "5"),
Padding(
padding: const EdgeInsets.only(left: 8.0, right: 8),
child: RichText(
// overflow: TextOverflow.fade,
text: TextSpan(
style: TextStyle(color: primaryColor),
children: textList,
),
),
),
SizedBox(height: 10),
fcsButton(context, "Save", callack: () {}),
SizedBox(height: 10)
],