Skip to content

Commit 4269c5b

Browse files
author
WooSignal
committed
v2.1.0 update for RazorPay, FreeShipping minimum value, new grid
1 parent 09050b3 commit 4269c5b

File tree

18 files changed

+196
-75
lines changed

18 files changed

+196
-75
lines changed

LabelStoreMax/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [2.1.0] - 2020-07-22
2+
3+
* Pubspec.yaml update for RazorPay
4+
* FreeShipping minimum value feature
5+
* New grid collection layout
6+
17
## [2.0.9] - 2020-06-19
28

39
* New UI for home products

LabelStoreMax/lang/de.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,7 @@
169169
"That email is taken, try another": "Diese E-Mail wird genommen, versuchen Sie es mit einer anderen",
170170
"The email field is empty": "Das E-Mail-Feld ist leer",
171171
"No more orders": "Keine Bestellungen mehr",
172-
"Account updated": "Konto aktualisiert"
172+
"Account updated": "Konto aktualisiert",
173+
"Spend a minimum of": "Geben Sie mindestens ein",
174+
"for": "zum"
173175
}

LabelStoreMax/lang/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,7 @@
169169
"That email is taken, try another": "That email is taken, try another",
170170
"The email field is empty": "The email field is empty",
171171
"No more orders": "No more orders",
172-
"Account updated": "Account updated"
172+
"Account updated": "Account updated",
173+
"Spend a minimum of": "Spend a minimum of",
174+
"for": "for"
173175
}

LabelStoreMax/lang/es.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,7 @@
169169
"That email is taken, try another": "Ese correo electrónico está tomado, prueba con otro",
170170
"The email field is empty": "El campo de correo electrónico está vacío.",
171171
"No more orders": "No mas pedidos",
172-
"Account updated": "Cuenta actualizada"
172+
"Account updated": "Cuenta actualizada",
173+
"Spend a minimum of": "Gasta un mínimo de",
174+
"for": "para"
173175
}

LabelStoreMax/lang/fr.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,7 @@
169169
"That email is taken, try another": "Cet e-mail est pris, essayez un autre",
170170
"The email field is empty": "Le champ e-mail est vide",
171171
"No more orders": "Plus de commandes",
172-
"Account updated": "Compte mis à jour"
172+
"Account updated": "Compte mis à jour",
173+
"Spend a minimum of": "Dépensez un minimum de",
174+
"for": "pour"
173175
}

LabelStoreMax/lang/hi.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,7 @@
169169
"That email is taken, try another": "vah eemel liya gaya hai, doosara prayaas karen",
170170
"The email field is empty": "eemel feeld khaalee hai",
171171
"No more orders": "aur koee aadesh nahin",
172-
"Account updated": "khaata apadet kiya gaya"
172+
"Account updated": "khaata apadet kiya gaya",
173+
"Spend a minimum of": "kam se kam kharch karen",
174+
"for": "ke liye"
173175
}

LabelStoreMax/lang/it.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,7 @@
169169
"That email is taken, try another": "Quell'e-mail è stata presa, provane un'altra",
170170
"The email field is empty": "Il campo email è vuoto",
171171
"No more orders": "Niente più ordini",
172-
"Account updated": "Account aggiornato"
172+
"Account updated": "Account aggiornato",
173+
"Spend a minimum of": "Spendi un minimo di",
174+
"for": "per"
173175
}

LabelStoreMax/lang/pt.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,7 @@
169169
"That email is taken, try another": "Esse e-mail foi recebido, tente outro",
170170
"The email field is empty": "O campo de email está vazio",
171171
"No more orders": "Não há mais pedidos",
172-
"Account updated": "Conta atualizada"
172+
"Account updated": "Conta atualizada",
173+
"Spend a minimum of": "Gaste um mínimo de",
174+
"for": "para"
173175
}

LabelStoreMax/lib/helpers/tools.dart

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import 'dart:developer';
1212

1313
import 'package:flutter/cupertino.dart';
14+
import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';
1415
import 'package:intl/intl.dart';
1516
import 'package:label_storemax/app_payment_methods.dart';
1617
import 'package:label_storemax/helpers/app_localizations.dart';
@@ -78,7 +79,12 @@ class EdgeAlertStyle {
7879
}
7980

8081
void showEdgeAlertWith(context,
81-
{title = "", desc = "", int gravity = 1, int style = 1, IconData icon}) {
82+
{title = "",
83+
desc = "",
84+
int gravity = 1,
85+
int style = 1,
86+
IconData icon,
87+
int duration}) {
8288
switch (style) {
8389
case 1: // SUCCESS
8490
EdgeAlert.show(context,
@@ -87,7 +93,7 @@ void showEdgeAlertWith(context,
8793
gravity: gravity,
8894
backgroundColor: Colors.green,
8995
icon: icon ?? Icons.check,
90-
duration: EdgeAlert.LENGTH_LONG);
96+
duration: duration ?? EdgeAlert.LENGTH_LONG);
9197
break;
9298
case 2: // WARNING
9399
EdgeAlert.show(context,
@@ -96,7 +102,7 @@ void showEdgeAlertWith(context,
96102
gravity: gravity,
97103
backgroundColor: Colors.orange,
98104
icon: icon ?? Icons.error_outline,
99-
duration: EdgeAlert.LENGTH_LONG);
105+
duration: duration ?? EdgeAlert.LENGTH_LONG);
100106
break;
101107
case 3: // INFO
102108
EdgeAlert.show(context,
@@ -105,7 +111,7 @@ void showEdgeAlertWith(context,
105111
gravity: gravity,
106112
backgroundColor: Colors.teal,
107113
icon: icon ?? Icons.info,
108-
duration: EdgeAlert.LENGTH_LONG);
114+
duration: duration ?? EdgeAlert.LENGTH_LONG);
109115
break;
110116
case 4: // DANGER
111117
EdgeAlert.show(context,
@@ -114,7 +120,7 @@ void showEdgeAlertWith(context,
114120
gravity: gravity,
115121
backgroundColor: Colors.redAccent,
116122
icon: icon ?? Icons.warning,
117-
duration: EdgeAlert.LENGTH_LONG);
123+
duration: duration ?? EdgeAlert.LENGTH_LONG);
118124
break;
119125
default:
120126
break;
@@ -509,14 +515,24 @@ Widget refreshableScroll(context,
509515
onRefresh: onRefresh,
510516
onLoading: onLoading,
511517
child: (products.length != null && products.length > 0
512-
? GridView.count(
518+
? StaggeredGridView.countBuilder(
513519
crossAxisCount: 2,
514-
shrinkWrap: true,
515-
children: List.generate(
516-
products.length,
517-
(index) => wsCardProductItem(context,
518-
index: index, product: products[index], onTap: onTap),
519-
))
520+
itemCount: products.length,
521+
itemBuilder: (BuildContext context, int index) {
522+
return Container(
523+
height: 200,
524+
child: wsCardProductItem(
525+
context,
526+
index: (index),
527+
product: products[index],
528+
onTap: onTap,
529+
),
530+
);
531+
},
532+
staggeredTileBuilder: (int index) => new StaggeredTile.fit(1),
533+
mainAxisSpacing: 4.0,
534+
crossAxisSpacing: 4.0,
535+
)
520536
: wsNoResults(context)),
521537
);
522538
}

LabelStoreMax/lib/labelconfig.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import 'dart:ui';
1616
Developer Notes
1717
1818
SUPPORT EMAIL - support@woosignal.com
19-
VERSION - 2.0.9
19+
VERSION - 2.1.0
2020
https://woosignal.com
2121
*/
2222

0 commit comments

Comments
 (0)