diff --git a/lib/pages/carton_search/carton_search.dart b/lib/pages/carton_search/carton_search.dart index 978fd85..1139cce 100644 --- a/lib/pages/carton_search/carton_search.dart +++ b/lib/pages/carton_search/carton_search.dart @@ -31,13 +31,16 @@ class PartSearchDelegate extends SearchDelegate { ThemeData appBarTheme(BuildContext context) { final ThemeData theme = Theme.of(context); return theme.copyWith( + appBarTheme: AppBarTheme(color: primaryColor), inputDecorationTheme: InputDecorationTheme( border: InputBorder.none, hintStyle: TextStyle( - color: theme.primaryTextTheme.caption!.color, fontSize: 14)), - textTheme: theme.textTheme.copyWith( - title: theme.textTheme.title!.copyWith( - color: theme.primaryTextTheme.title!.color, fontSize: 16)), + color: theme.primaryTextTheme.caption?.color, fontSize: 14)), + textTheme: TextTheme( + headline1: TextStyle( + color: theme.primaryTextTheme.headline1?.color, + fontSize: 16, + backgroundColor: primaryColor)), primaryColor: primaryColor, ); } diff --git a/lib/pages/delivery_address/model/delivery_address_model.dart b/lib/pages/delivery_address/model/delivery_address_model.dart index b7b90d1..719c552 100644 --- a/lib/pages/delivery_address/model/delivery_address_model.dart +++ b/lib/pages/delivery_address/model/delivery_address_model.dart @@ -60,7 +60,7 @@ class DeliveryAddressModel extends BaseModel { Future getDeliveryAddress(String id) async { String path = "/$user_collection/${user!.id}/$delivery_address_collection"; var snap = await FirebaseFirestore.instance.collection(path).doc(id).get(); - return DeliveryAddress.fromMap(snap.data as Map, snap.id); + return DeliveryAddress.fromMap(snap.data()!, snap.id); } void initUser(user) { diff --git a/lib/pages/discount/discount_editor.dart b/lib/pages/discount/discount_editor.dart index 3b66baf..32333f0 100644 --- a/lib/pages/discount/discount_editor.dart +++ b/lib/pages/discount/discount_editor.dart @@ -80,7 +80,7 @@ class _DiscountEditorState extends State { customerId = u.id ?? ""; customerName = u.name ?? ""; }); - },popPage: true)), + }, popPage: true)), ], ); diff --git a/lib/pages/package/package_info.dart b/lib/pages/package/package_info.dart index 77b485b..608b1ef 100644 --- a/lib/pages/package/package_info.dart +++ b/lib/pages/package/package_info.dart @@ -193,7 +193,6 @@ class _PackageInfoState extends State { } _changeDeliverayAddress(DeliveryAddress deliveryAddress) async { - if (deliveryAddress == null) return; setState(() { _isLoading = true; }); diff --git a/lib/pages/package_search/package_serach.dart b/lib/pages/package_search/package_serach.dart index 522396d..3ada0bd 100644 --- a/lib/pages/package_search/package_serach.dart +++ b/lib/pages/package_search/package_serach.dart @@ -29,13 +29,16 @@ class PackageSearchDelegate extends SearchDelegate { ThemeData appBarTheme(BuildContext context) { final ThemeData theme = Theme.of(context); return theme.copyWith( + appBarTheme: AppBarTheme(color: primaryColor), inputDecorationTheme: InputDecorationTheme( border: InputBorder.none, hintStyle: TextStyle( - color: theme.primaryTextTheme.caption!.color, fontSize: 14)), - textTheme: theme.textTheme.copyWith( - title: theme.textTheme.title!.copyWith( - color: theme.primaryTextTheme.title!.color, fontSize: 16)), + color: theme.primaryTextTheme.caption?.color, fontSize: 14)), + textTheme: TextTheme( + headline1: TextStyle( + color: theme.primaryTextTheme.headline1?.color, + fontSize: 16, + backgroundColor: primaryColor)), primaryColor: primaryColor, ); } diff --git a/lib/pages/receiving/receiving_editor.dart b/lib/pages/receiving/receiving_editor.dart index a120ee0..e542548 100644 --- a/lib/pages/receiving/receiving_editor.dart +++ b/lib/pages/receiving/receiving_editor.dart @@ -231,6 +231,11 @@ class _ReceivingEditorState extends State { showMsgDialog(context, "Error", "Invalid tracking ID!"); return; } + + if (user == null) { + showMsgDialog(context, "Error", "Please select FCS ID"); + return; + } setState(() { _isLoading = true; }); diff --git a/lib/pages/user_search/user_serach.dart b/lib/pages/user_search/user_serach.dart index 51e840a..b8e6584 100644 --- a/lib/pages/user_search/user_serach.dart +++ b/lib/pages/user_search/user_serach.dart @@ -29,13 +29,16 @@ class UserSearchDelegate extends SearchDelegate { ThemeData appBarTheme(BuildContext context) { final ThemeData theme = Theme.of(context); return theme.copyWith( + appBarTheme: AppBarTheme(color: primaryColor), inputDecorationTheme: InputDecorationTheme( border: InputBorder.none, hintStyle: TextStyle( color: theme.primaryTextTheme.caption?.color, fontSize: 14)), - textTheme: theme.textTheme.copyWith( - title: theme.textTheme.title?.copyWith( - color: theme.primaryTextTheme.title?.color, fontSize: 16)), + textTheme: TextTheme( + headline1: TextStyle( + color: theme.primaryTextTheme.headline1?.color, + fontSize: 16, + backgroundColor: primaryColor)), primaryColor: primaryColor, ); } diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc index 026851f..f6f23bf 100644 --- a/linux/flutter/generated_plugin_registrant.cc +++ b/linux/flutter/generated_plugin_registrant.cc @@ -2,6 +2,8 @@ // Generated file. Do not edit. // +// clang-format off + #include "generated_plugin_registrant.h" #include diff --git a/linux/flutter/generated_plugin_registrant.h b/linux/flutter/generated_plugin_registrant.h index 9bf7478..e0f0a47 100644 --- a/linux/flutter/generated_plugin_registrant.h +++ b/linux/flutter/generated_plugin_registrant.h @@ -2,6 +2,8 @@ // Generated file. Do not edit. // +// clang-format off + #ifndef GENERATED_PLUGIN_REGISTRANT_ #define GENERATED_PLUGIN_REGISTRANT_