updated new flutter version
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
class Constants {
|
class Constants {
|
||||||
|
|
||||||
|
static const bool DEBUG = false;
|
||||||
static const bool ENABLE_NATIVE_PAY = false;
|
static const bool ENABLE_NATIVE_PAY = false;
|
||||||
|
|
||||||
static const bool isPreview = false;
|
static const bool isPreview = false;
|
||||||
@@ -20,10 +21,9 @@ class Constants {
|
|||||||
static const int FONT_WISETRONIC = 0xe812;
|
static const int FONT_WISETRONIC = 0xe812;
|
||||||
static const int FONT_TOPTONS = 0xe813;
|
static const int FONT_TOPTONS = 0xe813;
|
||||||
|
|
||||||
static const bool DEBUG = false;
|
|
||||||
static const int BUSINESS_ID = 310; //310, 680, 357(notjust), 651(kiosk);
|
static const int BUSINESS_ID = 310; //310, 680, 357(notjust), 651(kiosk);
|
||||||
static const String APP_TITLE = 'MiniPOS Ponit of Sale System';
|
static const String APP_TITLE = 'MiniPOS Ponit of Sale System';
|
||||||
static const String BASE_API_URL = 'https://api.minipos.us/'; //'https://sandbox.minipos.us/', 'https://api.minipos.us/'
|
static const String BASE_API_URL = DEBUG ? 'https://sandbox.minipos.us/' : 'https://api.minipos.us/'; //'https://sandbox.minipos.us/', 'https://api.minipos.us/'
|
||||||
static const String TUTORIAL_URL = 'https://archive.wisetronic.com/wisetronic-products-documentation/';
|
static const String TUTORIAL_URL = 'https://archive.wisetronic.com/wisetronic-products-documentation/';
|
||||||
static const String API_SECRET = 'pei326sami1223HellowWorldabcdEd';
|
static const String API_SECRET = 'pei326sami1223HellowWorldabcdEd';
|
||||||
static const KEY_USER_ID = 'user_id';
|
static const KEY_USER_ID = 'user_id';
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ AlertDialog logoutDialog(BuildContext context) {
|
|||||||
.of(context)
|
.of(context)
|
||||||
.are_you_sure_to_logout),
|
.are_you_sure_to_logout),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S
|
child: Text(S
|
||||||
.of(context)
|
.of(context)
|
||||||
.cancel),
|
.cancel),
|
||||||
@@ -27,7 +27,7 @@ AlertDialog logoutDialog(BuildContext context) {
|
|||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S
|
child: Text(S
|
||||||
.of(context)
|
.of(context)
|
||||||
.yes_i_am_sure),
|
.yes_i_am_sure),
|
||||||
|
|||||||
@@ -525,7 +525,7 @@ class Utils {
|
|||||||
content: Text(message),
|
content: Text(message),
|
||||||
actions: actions == null
|
actions: actions == null
|
||||||
? <Widget>[
|
? <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: onOk == null
|
onPressed: onOk == null
|
||||||
? () {
|
? () {
|
||||||
@@ -740,13 +740,13 @@ class Utils {
|
|||||||
title: Text(S.of(context).warning),
|
title: Text(S.of(context).warning),
|
||||||
content: Text(S.of(context).are_you_sure_to_empty_basket),
|
content: Text(S.of(context).are_you_sure_to_empty_basket),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).yes_i_am_sure),
|
child: Text(S.of(context).yes_i_am_sure),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
store.dispatch(new UpdateCartInfo(
|
store.dispatch(new UpdateCartInfo(
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import 'package:countdown/countdown.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/rendering.dart';
|
import 'package:flutter/rendering.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_wisetronic/widgets/general/breadcrumbs.dart';
|
|
||||||
import 'package:fluttertoast/fluttertoast.dart';
|
import 'package:fluttertoast/fluttertoast.dart';
|
||||||
|
|
||||||
import '../../generated/l10n.dart';
|
import '../../generated/l10n.dart';
|
||||||
@@ -216,8 +215,10 @@ class DesktopChangeMobileOrEmailState extends State<DesktopChangeMobileOrEmail>
|
|||||||
margin: EdgeInsets.only(top: 0.0, right: 16.0),
|
margin: EdgeInsets.only(top: 0.0, right: 16.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).submit_to_change,
|
S.of(context).submit_to_change,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
@@ -280,8 +280,10 @@ class DesktopChangePasswordState extends State<DesktopChangePassword> {
|
|||||||
padding: EdgeInsets.only(right: 16.0, top: 16.0),
|
padding: EdgeInsets.only(right: 16.0, top: 16.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).submit,
|
S.of(context).submit,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -319,7 +321,7 @@ class DesktopChangePasswordState extends State<DesktopChangePassword> {
|
|||||||
title: Text(S.of(context).success),
|
title: Text(S.of(context).success),
|
||||||
content: Text(S.of(context).password_has_been_changed),
|
content: Text(S.of(context).password_has_been_changed),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
|||||||
@@ -125,8 +125,10 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
|
|||||||
Text(
|
Text(
|
||||||
S.of(context).no_delivery_method,
|
S.of(context).no_delivery_method,
|
||||||
),
|
),
|
||||||
RaisedButton(
|
ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).ok,
|
S.of(context).ok,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -1215,7 +1217,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
@@ -1280,7 +1282,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
@@ -1385,7 +1387,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).close),
|
child: Text(S.of(context).close),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
@@ -1431,7 +1433,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
@@ -1605,7 +1607,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
@@ -1657,7 +1659,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.only(left: 5.0),
|
margin: EdgeInsets.only(left: 5.0),
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).get_coupon,
|
S.of(context).get_coupon,
|
||||||
),
|
),
|
||||||
@@ -1951,7 +1953,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
|
|||||||
));
|
));
|
||||||
for (int i = 0; i < cartInfo.businessInfo.quickInputs.length; i++) {
|
for (int i = 0; i < cartInfo.businessInfo.quickInputs.length; i++) {
|
||||||
String qi = cartInfo.businessInfo.quickInputs[i].value;
|
String qi = cartInfo.businessInfo.quickInputs[i].value;
|
||||||
w.children.add(FlatButton(
|
w.children.add(TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
qi,
|
qi,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -1993,7 +1995,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
@@ -2002,7 +2004,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).save),
|
child: Text(S.of(context).save),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (mounted) {
|
if (mounted) {
|
||||||
@@ -2069,7 +2071,7 @@ class DesktopCheckoutState extends State<DesktopCheckout> with SingleTickerProvi
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
|
|||||||
@@ -269,17 +269,19 @@ class DesktopCouponsState extends State<DesktopCoupons> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(20.0),
|
||||||
|
),
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).redeem_coupon,
|
S.of(context).redeem_coupon,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
shape: RoundedRectangleBorder(
|
|
||||||
borderRadius: BorderRadius.circular(20.0),
|
|
||||||
),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (coupon.store != null) {
|
if (coupon.store != null) {
|
||||||
Routes.router.navigateTo(context, '/shop/${coupon.store.id}/na/na/na');
|
Routes.router.navigateTo(context, '/shop/${coupon.store.id}/na/na/na');
|
||||||
|
|||||||
@@ -434,7 +434,7 @@ class DesktopEditAddressState extends State<DesktopEditAddress> {
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S
|
S
|
||||||
.of(context)
|
.of(context)
|
||||||
@@ -452,7 +452,7 @@ class DesktopEditAddressState extends State<DesktopEditAddress> {
|
|||||||
.of(context)
|
.of(context)
|
||||||
.are_you_sure_to_delete_the_address),
|
.are_you_sure_to_delete_the_address),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S
|
child: Text(S
|
||||||
.of(context)
|
.of(context)
|
||||||
.cancel),
|
.cancel),
|
||||||
@@ -460,7 +460,7 @@ class DesktopEditAddressState extends State<DesktopEditAddress> {
|
|||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S
|
child: Text(S
|
||||||
.of(context)
|
.of(context)
|
||||||
.yes_i_am_sure),
|
.yes_i_am_sure),
|
||||||
@@ -475,7 +475,7 @@ class DesktopEditAddressState extends State<DesktopEditAddress> {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S
|
S
|
||||||
.of(context)
|
.of(context)
|
||||||
|
|||||||
@@ -197,8 +197,10 @@ class DesktopForgotPasswordState extends State<DesktopForgotPassword> {
|
|||||||
margin: EdgeInsets.only(top: 0.0, right: 16.0),
|
margin: EdgeInsets.only(top: 0.0, right: 16.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).verify,
|
S.of(context).verify,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ class DesktopLoginState extends State<DesktopLogin> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).new_user_question,
|
S.of(context).new_user_question,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -226,7 +226,7 @@ class DesktopLoginState extends State<DesktopLogin> {
|
|||||||
child: Text(''),
|
child: Text(''),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).forgot_password_question,
|
S.of(context).forgot_password_question,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -246,8 +246,10 @@ class DesktopLoginState extends State<DesktopLogin> {
|
|||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
top: 20.0, left: 16.0, right: 16.0, bottom: 20.0),
|
top: 20.0, left: 16.0, right: 16.0, bottom: 20.0),
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).login,
|
S.of(context).login,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
@@ -139,14 +139,16 @@ class MyCardsState extends State<DesktopMyCards> {
|
|||||||
S.of(context).are_you_sure_to_remove_the_card,
|
S.of(context).are_you_sure_to_remove_the_card,
|
||||||
),
|
),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
color: Theme.of(context).primaryColor,
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
|
style: TextButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).yes_i_am_sure),
|
child: Text(S.of(context).yes_i_am_sure),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
|||||||
@@ -358,7 +358,7 @@ class DesktopNewAddressState extends State<DesktopNewAddress> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
SizedBox(),
|
SizedBox(),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).save
|
S.of(context).save
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -167,14 +167,16 @@ class DesktopNewCommentState extends State<DesktopNewComment> {
|
|||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 150.0,
|
width: 150.0,
|
||||||
height: 36.0,
|
height: 36.0,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).submit,
|
S.of(context).submit,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_submit();
|
_submit();
|
||||||
},
|
},
|
||||||
@@ -238,14 +240,16 @@ class DesktopNewCommentState extends State<DesktopNewComment> {
|
|||||||
title: Text(S.of(context).warning),
|
title: Text(S.of(context).warning),
|
||||||
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
color: Theme.of(context).primaryColor,
|
style: TextButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).yes_i_am_sure),
|
child: Text(S.of(context).yes_i_am_sure),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
|||||||
@@ -208,8 +208,10 @@ class DesktopNewTicketState extends State<DesktopNewTicket> {
|
|||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.only(top: 20.0, left: 16.0, right: 16.0, bottom: 20.0),
|
padding: EdgeInsets.only(top: 20.0, left: 16.0, right: 16.0, bottom: 20.0),
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).login,
|
S.of(context).login,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -389,15 +391,17 @@ class DesktopNewTicketState extends State<DesktopNewTicket> {
|
|||||||
title: Text(S.of(context).warning),
|
title: Text(S.of(context).warning),
|
||||||
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
||||||
actions: [
|
actions: [
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
RaisedButton(
|
ElevatedButton(
|
||||||
child: Text(S.of(context).yes_i_am_sure),
|
child: Text(S.of(context).yes_i_am_sure),
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
setState(() {
|
setState(() {
|
||||||
@@ -439,7 +443,7 @@ class DesktopNewTicketState extends State<DesktopNewTicket> {
|
|||||||
title: Text(S.of(context).success),
|
title: Text(S.of(context).success),
|
||||||
content: Text(S.of(context).ticket_created_success),
|
content: Text(S.of(context).ticket_created_success),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.navigateTo(context, '/my-support/${widget.businessId}', replace: true);
|
Routes.router.navigateTo(context, '/my-support/${widget.businessId}', replace: true);
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
import 'package:countdown/countdown.dart';
|
import 'package:countdown/countdown.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/rendering.dart';
|
import 'package:flutter/rendering.dart';
|
||||||
import 'package:flutter_wisetronic/widgets/general/breadcrumbs.dart';
|
|
||||||
import 'package:fluttertoast/fluttertoast.dart';
|
import 'package:fluttertoast/fluttertoast.dart';
|
||||||
|
|
||||||
import '../../constants.dart';
|
import '../../constants.dart';
|
||||||
@@ -195,8 +194,10 @@ class DesktopNewUserState extends State<DesktopNewUser> {
|
|||||||
margin: EdgeInsets.only(top: 0.0, right: 16.0),
|
margin: EdgeInsets.only(top: 0.0, right: 16.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).register,
|
S.of(context).register,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
@@ -1001,7 +1001,7 @@ class DesktopOrderDetailState extends State<DesktopOrderDetail> {
|
|||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(right: 10.0),
|
padding: EdgeInsets.only(right: 10.0),
|
||||||
child: order.status == Constants.STATUS_PENDING && order.paymentStatus == Constants.PAYMENT_STATUS_UNPAID ?
|
child: order.status == Constants.STATUS_PENDING && order.paymentStatus == Constants.PAYMENT_STATUS_UNPAID ?
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).cancel_order,
|
S.of(context).cancel_order,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -1015,7 +1015,7 @@ class DesktopOrderDetailState extends State<DesktopOrderDetail> {
|
|||||||
) : SizedBox.shrink(),
|
) : SizedBox.shrink(),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
child: order.status == Constants.STATUS_COMPLETE && !order.hasComment ? RaisedButton(
|
child: order.status == Constants.STATUS_COMPLETE && !order.hasComment ? ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).comment,
|
S.of(context).comment,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -1033,7 +1033,7 @@ class DesktopOrderDetailState extends State<DesktopOrderDetail> {
|
|||||||
child: order.paymentStatus != Constants.PAYMENT_STATUS_PAID
|
child: order.paymentStatus != Constants.PAYMENT_STATUS_PAID
|
||||||
&& order.status != Constants.STATUS_CANCELLED
|
&& order.status != Constants.STATUS_CANCELLED
|
||||||
&& order.status != Constants.STATUS_COMPLETE ?
|
&& order.status != Constants.STATUS_COMPLETE ?
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).pay_now,
|
S.of(context).pay_now,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -1044,7 +1044,7 @@ class DesktopOrderDetailState extends State<DesktopOrderDetail> {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.navigateTo(context, '/paynow/${order.id}');
|
Routes.router.navigateTo(context, '/paynow/${order.id}');
|
||||||
},
|
},
|
||||||
) : FlatButton(
|
) : TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).order_again,
|
S.of(context).order_again,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -1172,16 +1172,18 @@ class DesktopOrderDetailState extends State<DesktopOrderDetail> {
|
|||||||
title: Text(S.of(context).warning),
|
title: Text(S.of(context).warning),
|
||||||
content: Text(S.of(context).are_you_sure_to_cancel_the_order),
|
content: Text(S.of(context).are_you_sure_to_cancel_the_order),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).no,
|
S.of(context).no,
|
||||||
),
|
),
|
||||||
color: Theme.of(context).primaryColor,
|
style: TextButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).yes_i_am_sure,
|
S.of(context).yes_i_am_sure,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ class DesktopOrdersState extends State<DesktopOrders> with SingleTickerProviderS
|
|||||||
Row row3 = Row(
|
Row row3 = Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
RaisedButton(
|
ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).detail,
|
S.of(context).detail,
|
||||||
),
|
),
|
||||||
@@ -232,7 +232,7 @@ class DesktopOrdersState extends State<DesktopOrders> with SingleTickerProviderS
|
|||||||
row3.children.add(
|
row3.children.add(
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(left: 10.0),
|
padding: EdgeInsets.only(left: 10.0),
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).comment,
|
S.of(context).comment,
|
||||||
),
|
),
|
||||||
@@ -254,7 +254,7 @@ class DesktopOrdersState extends State<DesktopOrders> with SingleTickerProviderS
|
|||||||
if (order.paymentStatus != Constants.PAYMENT_STATUS_PAID
|
if (order.paymentStatus != Constants.PAYMENT_STATUS_PAID
|
||||||
&& order.status != Constants.STATUS_CANCELLED
|
&& order.status != Constants.STATUS_CANCELLED
|
||||||
&& order.status != Constants.STATUS_COMPLETE) {
|
&& order.status != Constants.STATUS_COMPLETE) {
|
||||||
row2.children.add(RaisedButton(
|
row2.children.add(ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context)
|
S.of(context)
|
||||||
.pay_now,
|
.pay_now,
|
||||||
@@ -262,20 +262,24 @@ class DesktopOrdersState extends State<DesktopOrders> with SingleTickerProviderS
|
|||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
color: Colors.redAccent,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Colors.redAccent,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.navigateTo(context, '/paynow/${order.id}');
|
Routes.router.navigateTo(context, '/paynow/${order.id}');
|
||||||
},
|
},
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
row2.children.add(RaisedButton(
|
row2.children.add(ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).order_again,
|
S.of(context).order_again,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Utils.orderAgain(context, order.cartInfo);
|
Utils.orderAgain(context, order.cartInfo);
|
||||||
},
|
},
|
||||||
@@ -283,14 +287,16 @@ class DesktopOrdersState extends State<DesktopOrders> with SingleTickerProviderS
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
row2.children.add(row3);
|
row2.children.add(row3);
|
||||||
row2.children.add(RaisedButton(
|
row2.children.add(ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).order_again,
|
S.of(context).order_again,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Utils.orderAgain(context, order.cartInfo);
|
Utils.orderAgain(context, order.cartInfo);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -177,8 +177,10 @@ class DesktopResetPasswordState extends State<DesktopResetPassword> {
|
|||||||
padding: EdgeInsets.only(right: 0.0, top: 16.0),
|
padding: EdgeInsets.only(right: 0.0, top: 16.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).submit,
|
S.of(context).submit,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -276,7 +278,7 @@ class DesktopResetPasswordState extends State<DesktopResetPassword> {
|
|||||||
title: Text(S.of(context).success),
|
title: Text(S.of(context).success),
|
||||||
content: Text(S.of(context).reset_password_success),
|
content: Text(S.of(context).reset_password_success),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.navigateTo(context, '/login', replace: true, clearStack: false);
|
Routes.router.navigateTo(context, '/login', replace: true, clearStack: false);
|
||||||
|
|||||||
@@ -177,8 +177,10 @@ class DesktopSetPasswordState extends State<DesktopSetPassword> {
|
|||||||
padding: EdgeInsets.only(right: 16.0, top: 16.0),
|
padding: EdgeInsets.only(right: 16.0, top: 16.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).submit,
|
S.of(context).submit,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -276,7 +278,7 @@ class DesktopSetPasswordState extends State<DesktopSetPassword> {
|
|||||||
title: Text(S.of(context).success),
|
title: Text(S.of(context).success),
|
||||||
content: Text(S.of(context).reset_password_success),
|
content: Text(S.of(context).reset_password_success),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.navigateTo(context, '/login', replace: true, clearStack: false);
|
Routes.router.navigateTo(context, '/login', replace: true, clearStack: false);
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import '../../store/store.dart';
|
|||||||
import '../../utils/http_util.dart';
|
import '../../utils/http_util.dart';
|
||||||
import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dart';
|
import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dart';
|
||||||
import '../../utils/utils.dart';
|
import '../../utils/utils.dart';
|
||||||
import '../../widgets/general/breadcrumbs.dart';
|
|
||||||
|
|
||||||
class DesktopUserProfile extends StatefulWidget {
|
class DesktopUserProfile extends StatefulWidget {
|
||||||
final Key key;
|
final Key key;
|
||||||
@@ -435,7 +434,7 @@ class DesktopUserProfileState extends State<DesktopUserProfile> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).cancel
|
S.of(context).cancel
|
||||||
),
|
),
|
||||||
@@ -443,7 +442,7 @@ class DesktopUserProfileState extends State<DesktopUserProfile> {
|
|||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).submit_to_change,
|
S.of(context).submit_to_change,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -192,8 +192,10 @@ class DesktopViewTicketState extends State<DesktopViewTicket> {
|
|||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.only(top: 20.0, left: 16.0, right: 16.0, bottom: 20.0),
|
padding: EdgeInsets.only(top: 20.0, left: 16.0, right: 16.0, bottom: 20.0),
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).reply,
|
S.of(context).reply,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -633,15 +635,17 @@ class DesktopViewTicketState extends State<DesktopViewTicket> {
|
|||||||
title: Text(S.of(context).warning),
|
title: Text(S.of(context).warning),
|
||||||
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
||||||
actions: [
|
actions: [
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
RaisedButton(
|
ElevatedButton(
|
||||||
child: Text(S.of(context).yes_i_am_sure),
|
child: Text(S.of(context).yes_i_am_sure),
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
setState(() {
|
setState(() {
|
||||||
@@ -685,7 +689,7 @@ class DesktopViewTicketState extends State<DesktopViewTicket> {
|
|||||||
title: Text(S.of(context).success),
|
title: Text(S.of(context).success),
|
||||||
content: Text(S.of(context).ticket_created_success),
|
content: Text(S.of(context).ticket_created_success),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.navigateTo(context,
|
Routes.router.navigateTo(context,
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -22,6 +22,7 @@ class AddRemoveButton extends StatefulWidget {
|
|||||||
final bool addOnly;
|
final bool addOnly;
|
||||||
final int cartLineItemIndex;
|
final int cartLineItemIndex;
|
||||||
final bool addToBasket;
|
final bool addToBasket;
|
||||||
|
final bool onHovor;
|
||||||
|
|
||||||
AddRemoveButton({
|
AddRemoveButton({
|
||||||
this.product,
|
this.product,
|
||||||
@@ -29,6 +30,7 @@ class AddRemoveButton extends StatefulWidget {
|
|||||||
this.addOnly = false,
|
this.addOnly = false,
|
||||||
this.cartLineItemIndex = -1,
|
this.cartLineItemIndex = -1,
|
||||||
this.addToBasket = false,
|
this.addToBasket = false,
|
||||||
|
this.onHovor = false,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -72,7 +74,7 @@ class AddRemoveButtonState extends State<AddRemoveButton> {
|
|||||||
return Container(
|
return Container(
|
||||||
padding: EdgeInsets.only(top: 5.0, bottom: 5.0, left: 32.0, right: 32.0),
|
padding: EdgeInsets.only(top: 5.0, bottom: 5.0, left: 32.0, right: 32.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'x$_qty'
|
'x$_qty'
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -121,13 +123,16 @@ class AddRemoveButtonState extends State<AddRemoveButton> {
|
|||||||
padding: EdgeInsets.all(10),
|
padding: EdgeInsets.all(10),
|
||||||
position: BadgePosition.topEnd(top: -15, end: -10),
|
position: BadgePosition.topEnd(top: -15, end: -10),
|
||||||
badgeColor: Colors.lightBlueAccent,
|
badgeColor: Colors.lightBlueAccent,
|
||||||
child: RaisedButton.icon(
|
child: ElevatedButton.icon(
|
||||||
padding: EdgeInsets.only(left: 32, right: 32, top: 20, bottom: 20),
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 2.0,
|
primary: Colors.redAccent,
|
||||||
shape: new RoundedRectangleBorder(
|
onPrimary: Colors.white,
|
||||||
borderRadius: new BorderRadius.circular(10.0),
|
padding: EdgeInsets.only(left: 32, right: 32, top: 20, bottom: 20),
|
||||||
|
elevation: 2.0,
|
||||||
|
shape: new RoundedRectangleBorder(
|
||||||
|
borderRadius: new BorderRadius.circular(10.0),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
color: Colors.redAccent,
|
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
Icons.shopping_basket_outlined,
|
Icons.shopping_basket_outlined,
|
||||||
size: 32.0,
|
size: 32.0,
|
||||||
@@ -147,13 +152,15 @@ class AddRemoveButtonState extends State<AddRemoveButton> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return RaisedButton.icon(
|
return ElevatedButton.icon(
|
||||||
padding: EdgeInsets.only(left: 32, right: 32, top: 20, bottom: 20),
|
style: ElevatedButton.styleFrom(
|
||||||
elevation: 2.0,
|
primary: Colors.redAccent,
|
||||||
shape: new RoundedRectangleBorder(
|
padding: EdgeInsets.only(left: 32, right: 32, top: 20, bottom: 20),
|
||||||
borderRadius: new BorderRadius.circular(10.0),
|
elevation: 2.0,
|
||||||
|
shape: new RoundedRectangleBorder(
|
||||||
|
borderRadius: new BorderRadius.circular(10.0),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
color: Colors.redAccent,
|
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
Icons.shopping_basket_outlined,
|
Icons.shopping_basket_outlined,
|
||||||
size: 32.0,
|
size: 32.0,
|
||||||
@@ -172,7 +179,7 @@ class AddRemoveButtonState extends State<AddRemoveButton> {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}else if (widget.addOnly) {
|
} else if (widget.addOnly) {
|
||||||
return Container(
|
return Container(
|
||||||
key: startKey,
|
key: startKey,
|
||||||
padding: EdgeInsets.all(0.0),
|
padding: EdgeInsets.all(0.0),
|
||||||
@@ -235,6 +242,9 @@ class AddRemoveButtonState extends State<AddRemoveButton> {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
if (!widget.onHovor && _qty == 0) {
|
||||||
|
return SizedBox.shrink();
|
||||||
|
}
|
||||||
return new Row(
|
return new Row(
|
||||||
key: startKey,
|
key: startKey,
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
@@ -337,28 +347,28 @@ class AddRemoveButtonState extends State<AddRemoveButton> {
|
|||||||
if (widget.cartLineItemIndex != -1) {
|
if (widget.cartLineItemIndex != -1) {
|
||||||
if (cartInfo.productList[widget.cartLineItemIndex].quantity <= 1) {
|
if (cartInfo.productList[widget.cartLineItemIndex].quantity <= 1) {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
title: Text(S.of(context).warning),
|
title: Text(S.of(context).warning),
|
||||||
content: Text(S.of(context).are_you_sure_to_remove_the_item),
|
content: Text(S.of(context).are_you_sure_to_remove_the_item),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).maybePop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).yes_i_am_sure),
|
child: Text(S.of(context).yes_i_am_sure),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_removeCartLineItem();
|
_removeCartLineItem();
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).maybePop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
_removeCartLineItem();
|
_removeCartLineItem();
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import '../../widgets/general/text_link.dart';
|
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
import '../../generated/l10n.dart';
|
|
||||||
import '../../utils/utils.dart';
|
|
||||||
import '../../utils/extensions.dart';
|
|
||||||
import 'package:universal_io/io.dart';
|
|
||||||
import '../../constants.dart';
|
import '../../constants.dart';
|
||||||
|
import '../../generated/l10n.dart';
|
||||||
|
import '../../utils/extensions.dart';
|
||||||
import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dart';
|
import '../../utils/util_web.dart' if (dart.library.io) '../../utils/util_io.dart';
|
||||||
|
import '../../utils/utils.dart';
|
||||||
|
|
||||||
class DownloadItem extends StatefulWidget {
|
class DownloadItem extends StatefulWidget {
|
||||||
final dynamic desc;
|
final dynamic desc;
|
||||||
@@ -242,9 +241,11 @@ class DownloadItemState extends State<DownloadItem> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else if (downloadUrl != null && downloadUrl.isNotEmpty) {
|
} else if (downloadUrl != null && downloadUrl.isNotEmpty) {
|
||||||
return RaisedButton(
|
return ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
padding: EdgeInsets.all(8.0),
|
primary: Theme.of(context).primaryColor,
|
||||||
|
padding: EdgeInsets.all(8)
|
||||||
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ class PaymentVerificationCodeDialogState extends State<PaymentVerificationCodeDi
|
|||||||
title: Text(S.of(context).error),
|
title: Text(S.of(context).error),
|
||||||
content: Text(S.of(context).wrong_payment_verification_code),
|
content: Text(S.of(context).wrong_payment_verification_code),
|
||||||
actions: [
|
actions: [
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_pinPutController.clear();
|
_pinPutController.clear();
|
||||||
@@ -124,7 +124,7 @@ class PaymentVerificationCodeDialogState extends State<PaymentVerificationCodeDi
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).close),
|
child: Text(S.of(context).close),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ class _SlidingUpPanelState extends State<SlidingUpPanel> with SingleTickerProvid
|
|||||||
|
|
||||||
ScrollController _sc;
|
ScrollController _sc;
|
||||||
bool _scrollingEnabled = false;
|
bool _scrollingEnabled = false;
|
||||||
VelocityTracker _vt = new VelocityTracker();
|
VelocityTracker _vt = VelocityTracker.withKind(PointerDeviceKind.touch);
|
||||||
|
|
||||||
bool _isPanelVisible = true;
|
bool _isPanelVisible = true;
|
||||||
|
|
||||||
@@ -312,7 +312,7 @@ class _SlidingUpPanelState extends State<SlidingUpPanel> with SingleTickerProvid
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Stack(
|
child: Stack(
|
||||||
overflow: Overflow.visible,
|
clipBehavior: Clip.none,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
||||||
//open panel
|
//open panel
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ class MobileAttributeSelection extends StatefulWidget {
|
|||||||
class MobileAttributeSelectionState extends State<MobileAttributeSelection> {
|
class MobileAttributeSelectionState extends State<MobileAttributeSelection> {
|
||||||
Product product;
|
Product product;
|
||||||
int index;
|
int index;
|
||||||
FlatButton previousButton;
|
TextButton previousButton;
|
||||||
FlatButton nextButton;
|
TextButton nextButton;
|
||||||
bool previousButtonEnable;
|
bool previousButtonEnable;
|
||||||
bool nextButtonEnable;
|
bool nextButtonEnable;
|
||||||
|
|
||||||
@@ -159,12 +159,12 @@ class MobileAttributeSelectionState extends State<MobileAttributeSelection> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _getProductContent() {
|
Widget _getProductContent() {
|
||||||
previousButton = new FlatButton(
|
previousButton = TextButton(
|
||||||
onPressed: previousButtonEnable ? _goPrevious : null,
|
onPressed: previousButtonEnable ? _goPrevious : null,
|
||||||
child: new Text(S.of(context).previous),
|
child: new Text(S.of(context).previous),
|
||||||
);
|
);
|
||||||
|
|
||||||
nextButton = new FlatButton(
|
nextButton = TextButton(
|
||||||
onPressed: nextButtonEnable ? _goNext : null,
|
onPressed: nextButtonEnable ? _goNext : null,
|
||||||
child: new Text(
|
child: new Text(
|
||||||
product.productAttributes.length > index + 1 ? nextText : finishText
|
product.productAttributes.length > index + 1 ? nextText : finishText
|
||||||
|
|||||||
@@ -221,8 +221,10 @@ class MobileChangeMobileOrEmailState extends State<MobileChangeMobileOrEmail> {
|
|||||||
margin: EdgeInsets.only(top: 0.0, right: 16.0),
|
margin: EdgeInsets.only(top: 0.0, right: 16.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).submit_to_change,
|
S.of(context).submit_to_change,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
@@ -230,8 +230,10 @@ class MobileChangePasswordState extends State<MobileChangePassword> {
|
|||||||
padding: EdgeInsets.only(right: 16.0, top: 16.0, bottom: 20.0),
|
padding: EdgeInsets.only(right: 16.0, top: 16.0, bottom: 20.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).submit,
|
S.of(context).submit,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -257,7 +259,7 @@ class MobileChangePasswordState extends State<MobileChangePassword> {
|
|||||||
title: Text(S.of(context).success),
|
title: Text(S.of(context).success),
|
||||||
content: Text(S.of(context).password_has_been_changed),
|
content: Text(S.of(context).password_has_been_changed),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
|||||||
@@ -112,8 +112,10 @@ class MobileCheckoutState extends State<MobileCheckout> with SingleTickerProvide
|
|||||||
Text(
|
Text(
|
||||||
S.of(context).no_delivery_method,
|
S.of(context).no_delivery_method,
|
||||||
),
|
),
|
||||||
RaisedButton(
|
ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).ok,
|
S.of(context).ok,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -1195,7 +1197,7 @@ class MobileCheckoutState extends State<MobileCheckout> with SingleTickerProvide
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
@@ -1260,7 +1262,7 @@ class MobileCheckoutState extends State<MobileCheckout> with SingleTickerProvide
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
@@ -1365,7 +1367,7 @@ class MobileCheckoutState extends State<MobileCheckout> with SingleTickerProvide
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).close),
|
child: Text(S.of(context).close),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
@@ -1411,7 +1413,7 @@ class MobileCheckoutState extends State<MobileCheckout> with SingleTickerProvide
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
@@ -1585,7 +1587,7 @@ class MobileCheckoutState extends State<MobileCheckout> with SingleTickerProvide
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
@@ -1637,7 +1639,7 @@ class MobileCheckoutState extends State<MobileCheckout> with SingleTickerProvide
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.only(left: 5.0),
|
margin: EdgeInsets.only(left: 5.0),
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).get_coupon,
|
S.of(context).get_coupon,
|
||||||
),
|
),
|
||||||
@@ -1931,7 +1933,7 @@ class MobileCheckoutState extends State<MobileCheckout> with SingleTickerProvide
|
|||||||
));
|
));
|
||||||
for (int i = 0; i < cartInfo.businessInfo.quickInputs.length; i++) {
|
for (int i = 0; i < cartInfo.businessInfo.quickInputs.length; i++) {
|
||||||
String qi = cartInfo.businessInfo.quickInputs[i].value;
|
String qi = cartInfo.businessInfo.quickInputs[i].value;
|
||||||
w.children.add(FlatButton(
|
w.children.add(TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
qi,
|
qi,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -1973,7 +1975,7 @@ class MobileCheckoutState extends State<MobileCheckout> with SingleTickerProvide
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
@@ -1982,7 +1984,7 @@ class MobileCheckoutState extends State<MobileCheckout> with SingleTickerProvide
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).save),
|
child: Text(S.of(context).save),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (mounted) {
|
if (mounted) {
|
||||||
@@ -2049,7 +2051,7 @@ class MobileCheckoutState extends State<MobileCheckout> with SingleTickerProvide
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
padding: EdgeInsets.only(top: 16.0, bottom: 16.0, right: 16.0),
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
panelController.close();
|
panelController.close();
|
||||||
|
|||||||
@@ -246,17 +246,19 @@ class MobileCouponsState extends State<MobileCoupons> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(20),
|
||||||
|
),
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).redeem_coupon,
|
S.of(context).redeem_coupon,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
shape: RoundedRectangleBorder(
|
|
||||||
borderRadius: BorderRadius.circular(20.0),
|
|
||||||
),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (coupon.store != null) {
|
if (coupon.store != null) {
|
||||||
Routes.router.navigateTo(context, '/shop/${coupon.store.id}/na/na/na');
|
Routes.router.navigateTo(context, '/shop/${coupon.store.id}/na/na/na');
|
||||||
|
|||||||
@@ -410,7 +410,7 @@ class MobileEditAddressState extends State<MobileEditAddress> {
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S
|
S
|
||||||
.of(context)
|
.of(context)
|
||||||
@@ -428,7 +428,7 @@ class MobileEditAddressState extends State<MobileEditAddress> {
|
|||||||
.of(context)
|
.of(context)
|
||||||
.are_you_sure_to_delete_the_address),
|
.are_you_sure_to_delete_the_address),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S
|
child: Text(S
|
||||||
.of(context)
|
.of(context)
|
||||||
.cancel),
|
.cancel),
|
||||||
@@ -436,7 +436,7 @@ class MobileEditAddressState extends State<MobileEditAddress> {
|
|||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S
|
child: Text(S
|
||||||
.of(context)
|
.of(context)
|
||||||
.yes_i_am_sure),
|
.yes_i_am_sure),
|
||||||
@@ -451,7 +451,7 @@ class MobileEditAddressState extends State<MobileEditAddress> {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S
|
S
|
||||||
.of(context)
|
.of(context)
|
||||||
|
|||||||
@@ -204,8 +204,10 @@ class MobileForgotPasswordState extends State<MobileForgotPassword> {
|
|||||||
margin: EdgeInsets.only(top: 0.0, right: 16.0),
|
margin: EdgeInsets.only(top: 0.0, right: 16.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).verify,
|
S.of(context).verify,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ class MobileLoginState extends State<MobileLogin> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).new_user_question,
|
S.of(context).new_user_question,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -175,7 +175,7 @@ class MobileLoginState extends State<MobileLogin> {
|
|||||||
child: Text(''),
|
child: Text(''),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).forgot_password_question,
|
S.of(context).forgot_password_question,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -194,8 +194,10 @@ class MobileLoginState extends State<MobileLogin> {
|
|||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.only(top: 20.0, left: 16.0, right: 16.0, bottom: 20.0),
|
padding: EdgeInsets.only(top: 20.0, left: 16.0, right: 16.0, bottom: 20.0),
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).login,
|
S.of(context).login,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
@@ -405,7 +405,7 @@ class MobileMeState extends State<MobileMe> {
|
|||||||
S.of(context).feature_not_available_web,
|
S.of(context).feature_not_available_web,
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
FlatButton(
|
TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.pop(context);
|
Routes.router.pop(context);
|
||||||
},
|
},
|
||||||
@@ -679,15 +679,19 @@ class MobileMeState extends State<MobileMe> {
|
|||||||
title: Text(S.of(context).warning),
|
title: Text(S.of(context).warning),
|
||||||
content: Text(S.of(context).email_needed),
|
content: Text(S.of(context).email_needed),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
RaisedButton(
|
ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
textColor: Colors.white,
|
primary: Theme.of(context).primaryColor,
|
||||||
|
textStyle: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
),
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
|||||||
@@ -113,14 +113,16 @@ class MyCardsState extends State<MobileMyCards> {
|
|||||||
S.of(context).are_you_sure_to_remove_the_card,
|
S.of(context).are_you_sure_to_remove_the_card,
|
||||||
),
|
),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
color: Theme.of(context).primaryColor,
|
style: TextButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).yes_i_am_sure),
|
child: Text(S.of(context).yes_i_am_sure),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ class MobileNewAddressState extends State<MobileNewAddress> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
SizedBox(),
|
SizedBox(),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).save
|
S.of(context).save
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -204,14 +204,16 @@ class MobileNewCommentState extends State<MobileNewComment> {
|
|||||||
title: Text(S.of(context).warning),
|
title: Text(S.of(context).warning),
|
||||||
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
color: Theme.of(context).primaryColor,
|
style: TextButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).yes_i_am_sure),
|
child: Text(S.of(context).yes_i_am_sure),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
|||||||
@@ -160,8 +160,10 @@ class MobileNewTicketState extends State<MobileNewTicket> {
|
|||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.only(top: 20.0, left: 16.0, right: 16.0, bottom: 20.0),
|
padding: EdgeInsets.only(top: 20.0, left: 16.0, right: 16.0, bottom: 20.0),
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).submit,
|
S.of(context).submit,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -233,7 +235,7 @@ class MobileNewTicketState extends State<MobileNewTicket> {
|
|||||||
title: Text(S.of(context).success),
|
title: Text(S.of(context).success),
|
||||||
content: Text(S.of(context).ticket_created_success),
|
content: Text(S.of(context).ticket_created_success),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.navigateTo(context, '/my-support/${widget.businessId}', replace: true);
|
Routes.router.navigateTo(context, '/my-support/${widget.businessId}', replace: true);
|
||||||
@@ -363,15 +365,17 @@ class MobileNewTicketState extends State<MobileNewTicket> {
|
|||||||
title: Text(S.of(context).warning),
|
title: Text(S.of(context).warning),
|
||||||
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
||||||
actions: [
|
actions: [
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
RaisedButton(
|
ElevatedButton(
|
||||||
child: Text(S.of(context).yes_i_am_sure),
|
child: Text(S.of(context).yes_i_am_sure),
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
setState(() {
|
setState(() {
|
||||||
|
|||||||
@@ -201,8 +201,10 @@ class MobileNewUserState extends State<MobileNewUser> {
|
|||||||
margin: EdgeInsets.only(top: 0.0, right: 16.0),
|
margin: EdgeInsets.only(top: 0.0, right: 16.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).register,
|
S.of(context).register,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
@@ -984,7 +984,7 @@ class MobileOrderDetailState extends State<MobileOrderDetail> {
|
|||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.only(right: 10.0),
|
padding: EdgeInsets.only(right: 10.0),
|
||||||
child: order.status == Constants.STATUS_PENDING && order.paymentStatus == Constants.PAYMENT_STATUS_UNPAID ?
|
child: order.status == Constants.STATUS_PENDING && order.paymentStatus == Constants.PAYMENT_STATUS_UNPAID ?
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).cancel_order,
|
S.of(context).cancel_order,
|
||||||
),
|
),
|
||||||
@@ -994,7 +994,7 @@ class MobileOrderDetailState extends State<MobileOrderDetail> {
|
|||||||
) : SizedBox.shrink(),
|
) : SizedBox.shrink(),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
child: order.status == Constants.STATUS_COMPLETE && !order.hasComment ? RaisedButton(
|
child: order.status == Constants.STATUS_COMPLETE && !order.hasComment ? ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).comment,
|
S.of(context).comment,
|
||||||
),
|
),
|
||||||
@@ -1009,14 +1009,14 @@ class MobileOrderDetailState extends State<MobileOrderDetail> {
|
|||||||
child: order.paymentStatus != Constants.PAYMENT_STATUS_PAID
|
child: order.paymentStatus != Constants.PAYMENT_STATUS_PAID
|
||||||
&& order.status != Constants.STATUS_CANCELLED
|
&& order.status != Constants.STATUS_CANCELLED
|
||||||
&& order.status != Constants.STATUS_COMPLETE ?
|
&& order.status != Constants.STATUS_COMPLETE ?
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).pay_now,
|
S.of(context).pay_now,
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.navigateTo(context, '/paynow/${order.id}');
|
Routes.router.navigateTo(context, '/paynow/${order.id}');
|
||||||
},
|
},
|
||||||
) : FlatButton(
|
) : TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).order_again,
|
S.of(context).order_again,
|
||||||
),
|
),
|
||||||
@@ -1140,16 +1140,18 @@ class MobileOrderDetailState extends State<MobileOrderDetail> {
|
|||||||
title: Text(S.of(context).warning),
|
title: Text(S.of(context).warning),
|
||||||
content: Text(S.of(context).are_you_sure_to_cancel_the_order),
|
content: Text(S.of(context).are_you_sure_to_cancel_the_order),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).no,
|
S.of(context).no,
|
||||||
),
|
),
|
||||||
color: Theme.of(context).primaryColor,
|
style: TextButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).yes_i_am_sure,
|
S.of(context).yes_i_am_sure,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ class MobileOrdersState extends State<MobileOrders> with SingleTickerProviderSta
|
|||||||
Row row3 = Row(
|
Row row3 = Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
RaisedButton(
|
ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).detail,
|
S.of(context).detail,
|
||||||
),
|
),
|
||||||
@@ -203,7 +203,7 @@ class MobileOrdersState extends State<MobileOrders> with SingleTickerProviderSta
|
|||||||
row3.children.add(
|
row3.children.add(
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(left: 10.0),
|
padding: EdgeInsets.only(left: 10.0),
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).comment,
|
S.of(context).comment,
|
||||||
),
|
),
|
||||||
@@ -225,7 +225,7 @@ class MobileOrdersState extends State<MobileOrders> with SingleTickerProviderSta
|
|||||||
if (order.paymentStatus != Constants.PAYMENT_STATUS_PAID
|
if (order.paymentStatus != Constants.PAYMENT_STATUS_PAID
|
||||||
&& order.status != Constants.STATUS_CANCELLED
|
&& order.status != Constants.STATUS_CANCELLED
|
||||||
&& order.status != Constants.STATUS_COMPLETE) {
|
&& order.status != Constants.STATUS_COMPLETE) {
|
||||||
row2.children.add(RaisedButton(
|
row2.children.add(ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context)
|
S.of(context)
|
||||||
.pay_now,
|
.pay_now,
|
||||||
@@ -233,20 +233,24 @@ class MobileOrdersState extends State<MobileOrders> with SingleTickerProviderSta
|
|||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
color: Colors.redAccent,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Colors.redAccent,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.navigateTo(context, '/paynow/${order.id}');
|
Routes.router.navigateTo(context, '/paynow/${order.id}');
|
||||||
},
|
},
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
row2.children.add(RaisedButton(
|
row2.children.add(ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).order_again,
|
S.of(context).order_again,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Utils.orderAgain(context, order.cartInfo);
|
Utils.orderAgain(context, order.cartInfo);
|
||||||
},
|
},
|
||||||
@@ -254,14 +258,16 @@ class MobileOrdersState extends State<MobileOrders> with SingleTickerProviderSta
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
row2.children.add(row3);
|
row2.children.add(row3);
|
||||||
row2.children.add(RaisedButton(
|
row2.children.add(ElevatedButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).order_again,
|
S.of(context).order_again,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Utils.orderAgain(context, order.cartInfo);
|
Utils.orderAgain(context, order.cartInfo);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -193,8 +193,10 @@ class MobileResetPasswordState extends State<MobileResetPassword> {
|
|||||||
padding: EdgeInsets.only(right: 16.0, top: 16.0),
|
padding: EdgeInsets.only(right: 16.0, top: 16.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).submit,
|
S.of(context).submit,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -220,7 +222,7 @@ class MobileResetPasswordState extends State<MobileResetPassword> {
|
|||||||
title: Text(S.of(context).success),
|
title: Text(S.of(context).success),
|
||||||
content: Text(S.of(context).reset_password_success),
|
content: Text(S.of(context).reset_password_success),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.navigateTo(context, '/login', replace: true, clearStack: false);
|
Routes.router.navigateTo(context, '/login', replace: true, clearStack: false);
|
||||||
|
|||||||
@@ -194,8 +194,10 @@ class MobileSetPasswordState extends State<MobileSetPassword> {
|
|||||||
padding: EdgeInsets.only(right: 16.0, top: 16.0),
|
padding: EdgeInsets.only(right: 16.0, top: 16.0),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).submit,
|
S.of(context).submit,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -221,7 +223,7 @@ class MobileSetPasswordState extends State<MobileSetPassword> {
|
|||||||
title: Text(S.of(context).success),
|
title: Text(S.of(context).success),
|
||||||
content: Text(S.of(context).user_account_created_success),
|
content: Text(S.of(context).user_account_created_success),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.navigateTo(context, '/login', replace: true, clearStack: false);
|
Routes.router.navigateTo(context, '/login', replace: true, clearStack: false);
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ class MobileUserProfileState extends State<MobileUserProfile> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).cancel
|
S.of(context).cancel
|
||||||
),
|
),
|
||||||
@@ -410,7 +410,7 @@ class MobileUserProfileState extends State<MobileUserProfile> {
|
|||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).submit_to_change,
|
S.of(context).submit_to_change,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -337,8 +337,10 @@ class MobileViewTicketState extends State<MobileViewTicket> {
|
|||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.only(top: 20.0, left: 16.0, right: 16.0, bottom: 20.0),
|
padding: EdgeInsets.only(top: 20.0, left: 16.0, right: 16.0, bottom: 20.0),
|
||||||
child: RaisedButton(
|
child: ElevatedButton(
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
S.of(context).reply,
|
S.of(context).reply,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -631,15 +633,17 @@ class MobileViewTicketState extends State<MobileViewTicket> {
|
|||||||
title: Text(S.of(context).warning),
|
title: Text(S.of(context).warning),
|
||||||
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
content: Text(S.of(context).are_you_sure_to_remove_the_picture),
|
||||||
actions: [
|
actions: [
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).cancel),
|
child: Text(S.of(context).cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
RaisedButton(
|
ElevatedButton(
|
||||||
child: Text(S.of(context).yes_i_am_sure),
|
child: Text(S.of(context).yes_i_am_sure),
|
||||||
color: Theme.of(context).primaryColor,
|
style: ElevatedButton.styleFrom(
|
||||||
|
primary: Theme.of(context).primaryColor,
|
||||||
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
setState(() {
|
setState(() {
|
||||||
@@ -683,7 +687,7 @@ class MobileViewTicketState extends State<MobileViewTicket> {
|
|||||||
title: Text(S.of(context).success),
|
title: Text(S.of(context).success),
|
||||||
content: Text(S.of(context).ticket_created_success),
|
content: Text(S.of(context).ticket_created_success),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(S.of(context).ok),
|
child: Text(S.of(context).ok),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Routes.router.navigateTo(context,
|
Routes.router.navigateTo(context,
|
||||||
|
|||||||
@@ -534,7 +534,7 @@ class ShopState extends State<Shop>
|
|||||||
action: SnackBarAction(
|
action: SnackBarAction(
|
||||||
label: S.of(context).close,
|
label: S.of(context).close,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_scaffoldKey.currentState.hideCurrentSnackBar();
|
ScaffoldMessenger.of(context).hideCurrentSnackBar();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
content: Container(
|
content: Container(
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ list(APPEND FLUTTER_PLUGIN_LIST
|
|||||||
url_launcher_linux
|
url_launcher_linux
|
||||||
)
|
)
|
||||||
|
|
||||||
|
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
||||||
|
)
|
||||||
|
|
||||||
set(PLUGIN_BUNDLED_LIBRARIES)
|
set(PLUGIN_BUNDLED_LIBRARIES)
|
||||||
|
|
||||||
foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
||||||
@@ -15,3 +18,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
|||||||
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
|
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
|
||||||
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
|
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
|
||||||
endforeach(plugin)
|
endforeach(plugin)
|
||||||
|
|
||||||
|
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
|
||||||
|
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
|
||||||
|
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
|
||||||
|
endforeach(ffi_plugin)
|
||||||
|
|||||||
76
pubspec.lock
76
pubspec.lock
@@ -36,13 +36,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.1"
|
version: "2.0.1"
|
||||||
boolean_selector:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: boolean_selector
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.1.0"
|
|
||||||
cached_network_image:
|
cached_network_image:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -84,7 +77,7 @@ packages:
|
|||||||
name: characters
|
name: characters
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.0"
|
version: "1.2.1"
|
||||||
charcode:
|
charcode:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -119,7 +112,7 @@ packages:
|
|||||||
name: collection
|
name: collection
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.15.0"
|
version: "1.16.0"
|
||||||
countdown:
|
countdown:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -232,13 +225,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.0"
|
version: "2.0.0"
|
||||||
fake_async:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: fake_async
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.2.0"
|
|
||||||
ffi:
|
ffi:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@@ -403,11 +389,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.22.0"
|
version: "0.22.0"
|
||||||
flutter_test:
|
|
||||||
dependency: transitive
|
|
||||||
description: flutter
|
|
||||||
source: sdk
|
|
||||||
version: "0.0.0"
|
|
||||||
flutter_web_plugins:
|
flutter_web_plugins:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description: flutter
|
description: flutter
|
||||||
@@ -566,7 +547,7 @@ packages:
|
|||||||
name: js
|
name: js
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.6.3"
|
version: "0.6.4"
|
||||||
logging:
|
logging:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -602,13 +583,20 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.12.11"
|
version: "0.12.11"
|
||||||
|
material_color_utilities:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: material_color_utilities
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.1.5"
|
||||||
meta:
|
meta:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: meta
|
name: meta
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.7.0"
|
version: "1.8.0"
|
||||||
mime:
|
mime:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -692,7 +680,7 @@ packages:
|
|||||||
name: path
|
name: path
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.8.0"
|
version: "1.8.2"
|
||||||
path_drawing:
|
path_drawing:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -929,13 +917,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.10.0"
|
version: "1.10.0"
|
||||||
stream_channel:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: stream_channel
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.1.0"
|
|
||||||
stream_transform:
|
stream_transform:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -994,13 +975,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.0"
|
version: "1.2.0"
|
||||||
test_api:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: test_api
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "0.4.3"
|
|
||||||
timezone:
|
timezone:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -1119,28 +1093,42 @@ packages:
|
|||||||
name: vector_math
|
name: vector_math
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.1"
|
version: "2.1.2"
|
||||||
video_player:
|
video_player:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: video_player
|
name: video_player
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.12"
|
version: "2.2.19"
|
||||||
|
video_player_android:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: video_player_android
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "2.3.4"
|
||||||
|
video_player_avfoundation:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: video_player_avfoundation
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "2.3.5"
|
||||||
video_player_platform_interface:
|
video_player_platform_interface:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: video_player_platform_interface
|
name: video_player_platform_interface
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.1.0"
|
version: "5.0.0"
|
||||||
video_player_web:
|
video_player_web:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: video_player_web
|
name: video_player_web
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.2"
|
version: "2.0.10"
|
||||||
wakelock:
|
wakelock:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -1219,5 +1207,5 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "2.2.1"
|
version: "2.2.1"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=2.14.0 <3.0.0"
|
dart: ">=2.17.0-0 <3.0.0"
|
||||||
flutter: ">=2.2.0"
|
flutter: ">=2.8.0"
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ list(APPEND FLUTTER_PLUGIN_LIST
|
|||||||
url_launcher_windows
|
url_launcher_windows
|
||||||
)
|
)
|
||||||
|
|
||||||
|
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
||||||
|
)
|
||||||
|
|
||||||
set(PLUGIN_BUNDLED_LIBRARIES)
|
set(PLUGIN_BUNDLED_LIBRARIES)
|
||||||
|
|
||||||
foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
||||||
@@ -15,3 +18,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
|||||||
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
|
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
|
||||||
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
|
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
|
||||||
endforeach(plugin)
|
endforeach(plugin)
|
||||||
|
|
||||||
|
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
|
||||||
|
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
|
||||||
|
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
|
||||||
|
endforeach(ffi_plugin)
|
||||||
|
|||||||
Reference in New Issue
Block a user