Merge branch 'master' of phaung/fcs into master
This commit is contained in:
@@ -31,13 +31,16 @@ class PartSearchDelegate extends SearchDelegate<Carton> {
|
|||||||
ThemeData appBarTheme(BuildContext context) {
|
ThemeData appBarTheme(BuildContext context) {
|
||||||
final ThemeData theme = Theme.of(context);
|
final ThemeData theme = Theme.of(context);
|
||||||
return theme.copyWith(
|
return theme.copyWith(
|
||||||
|
appBarTheme: AppBarTheme(color: primaryColor),
|
||||||
inputDecorationTheme: InputDecorationTheme(
|
inputDecorationTheme: InputDecorationTheme(
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
hintStyle: TextStyle(
|
hintStyle: TextStyle(
|
||||||
color: theme.primaryTextTheme.caption!.color, fontSize: 14)),
|
color: theme.primaryTextTheme.caption?.color, fontSize: 14)),
|
||||||
textTheme: theme.textTheme.copyWith(
|
textTheme: TextTheme(
|
||||||
title: theme.textTheme.title!.copyWith(
|
headline1: TextStyle(
|
||||||
color: theme.primaryTextTheme.title!.color, fontSize: 16)),
|
color: theme.primaryTextTheme.headline1?.color,
|
||||||
|
fontSize: 16,
|
||||||
|
backgroundColor: primaryColor)),
|
||||||
primaryColor: primaryColor,
|
primaryColor: primaryColor,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class DeliveryAddressModel extends BaseModel {
|
|||||||
Future<DeliveryAddress> getDeliveryAddress(String id) async {
|
Future<DeliveryAddress> getDeliveryAddress(String id) async {
|
||||||
String path = "/$user_collection/${user!.id}/$delivery_address_collection";
|
String path = "/$user_collection/${user!.id}/$delivery_address_collection";
|
||||||
var snap = await FirebaseFirestore.instance.collection(path).doc(id).get();
|
var snap = await FirebaseFirestore.instance.collection(path).doc(id).get();
|
||||||
return DeliveryAddress.fromMap(snap.data as Map<String, dynamic>, snap.id);
|
return DeliveryAddress.fromMap(snap.data()!, snap.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void initUser(user) {
|
void initUser(user) {
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class _DiscountEditorState extends State<DiscountEditor> {
|
|||||||
customerId = u.id ?? "";
|
customerId = u.id ?? "";
|
||||||
customerName = u.name ?? "";
|
customerName = u.name ?? "";
|
||||||
});
|
});
|
||||||
},popPage: true)),
|
}, popPage: true)),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -193,7 +193,6 @@ class _PackageInfoState extends State<PackageInfo> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_changeDeliverayAddress(DeliveryAddress deliveryAddress) async {
|
_changeDeliverayAddress(DeliveryAddress deliveryAddress) async {
|
||||||
if (deliveryAddress == null) return;
|
|
||||||
setState(() {
|
setState(() {
|
||||||
_isLoading = true;
|
_isLoading = true;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -29,13 +29,16 @@ class PackageSearchDelegate extends SearchDelegate<Package> {
|
|||||||
ThemeData appBarTheme(BuildContext context) {
|
ThemeData appBarTheme(BuildContext context) {
|
||||||
final ThemeData theme = Theme.of(context);
|
final ThemeData theme = Theme.of(context);
|
||||||
return theme.copyWith(
|
return theme.copyWith(
|
||||||
|
appBarTheme: AppBarTheme(color: primaryColor),
|
||||||
inputDecorationTheme: InputDecorationTheme(
|
inputDecorationTheme: InputDecorationTheme(
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
hintStyle: TextStyle(
|
hintStyle: TextStyle(
|
||||||
color: theme.primaryTextTheme.caption!.color, fontSize: 14)),
|
color: theme.primaryTextTheme.caption?.color, fontSize: 14)),
|
||||||
textTheme: theme.textTheme.copyWith(
|
textTheme: TextTheme(
|
||||||
title: theme.textTheme.title!.copyWith(
|
headline1: TextStyle(
|
||||||
color: theme.primaryTextTheme.title!.color, fontSize: 16)),
|
color: theme.primaryTextTheme.headline1?.color,
|
||||||
|
fontSize: 16,
|
||||||
|
backgroundColor: primaryColor)),
|
||||||
primaryColor: primaryColor,
|
primaryColor: primaryColor,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -231,6 +231,11 @@ class _ReceivingEditorState extends State<ReceivingEditor> {
|
|||||||
showMsgDialog(context, "Error", "Invalid tracking ID!");
|
showMsgDialog(context, "Error", "Invalid tracking ID!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (user == null) {
|
||||||
|
showMsgDialog(context, "Error", "Please select FCS ID");
|
||||||
|
return;
|
||||||
|
}
|
||||||
setState(() {
|
setState(() {
|
||||||
_isLoading = true;
|
_isLoading = true;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -29,13 +29,16 @@ class UserSearchDelegate extends SearchDelegate<User> {
|
|||||||
ThemeData appBarTheme(BuildContext context) {
|
ThemeData appBarTheme(BuildContext context) {
|
||||||
final ThemeData theme = Theme.of(context);
|
final ThemeData theme = Theme.of(context);
|
||||||
return theme.copyWith(
|
return theme.copyWith(
|
||||||
|
appBarTheme: AppBarTheme(color: primaryColor),
|
||||||
inputDecorationTheme: InputDecorationTheme(
|
inputDecorationTheme: InputDecorationTheme(
|
||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
hintStyle: TextStyle(
|
hintStyle: TextStyle(
|
||||||
color: theme.primaryTextTheme.caption?.color, fontSize: 14)),
|
color: theme.primaryTextTheme.caption?.color, fontSize: 14)),
|
||||||
textTheme: theme.textTheme.copyWith(
|
textTheme: TextTheme(
|
||||||
title: theme.textTheme.title?.copyWith(
|
headline1: TextStyle(
|
||||||
color: theme.primaryTextTheme.title?.color, fontSize: 16)),
|
color: theme.primaryTextTheme.headline1?.color,
|
||||||
|
fontSize: 16,
|
||||||
|
backgroundColor: primaryColor)),
|
||||||
primaryColor: primaryColor,
|
primaryColor: primaryColor,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
// Generated file. Do not edit.
|
// Generated file. Do not edit.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
|
||||||
#include "generated_plugin_registrant.h"
|
#include "generated_plugin_registrant.h"
|
||||||
|
|
||||||
#include <url_launcher_linux/url_launcher_plugin.h>
|
#include <url_launcher_linux/url_launcher_plugin.h>
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
// Generated file. Do not edit.
|
// Generated file. Do not edit.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
|
||||||
#ifndef GENERATED_PLUGIN_REGISTRANT_
|
#ifndef GENERATED_PLUGIN_REGISTRANT_
|
||||||
#define GENERATED_PLUGIN_REGISTRANT_
|
#define GENERATED_PLUGIN_REGISTRANT_
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user