modify ui
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:fcs/model/discount_model.dart';
|
||||
import 'package:fcs/model/shipment_model.dart';
|
||||
import 'package:fcs/model_fcs/message_model.dart';
|
||||
import 'package:fcs/model_fcs/package_model.dart';
|
||||
@@ -77,6 +78,7 @@ class _AppState extends State<App> {
|
||||
final MessageModel messageModel = new MessageModel();
|
||||
final InvoiceModel invoiceModel = new InvoiceModel();
|
||||
final CustomerModel customerModel = new CustomerModel();
|
||||
final DiscountModel discountModel = new DiscountModel();
|
||||
|
||||
AppTranslationsDelegate _newLocaleDelegate;
|
||||
|
||||
@@ -115,7 +117,8 @@ class _AppState extends State<App> {
|
||||
..addModel(messageModel)
|
||||
..addModel(shipmentRateModel)
|
||||
..addModel(invoiceModel)
|
||||
..addModel(customerModel);
|
||||
..addModel(customerModel)
|
||||
..addModel(discountModel);
|
||||
this.mainModel.init();
|
||||
}
|
||||
|
||||
@@ -173,6 +176,7 @@ class _AppState extends State<App> {
|
||||
ChangeNotifierProvider(builder: (context) => messageModel),
|
||||
ChangeNotifierProvider(builder: (context) => invoiceModel),
|
||||
ChangeNotifierProvider(builder: (context) => customerModel),
|
||||
ChangeNotifierProvider(builder: (context) => discountModel),
|
||||
ChangeNotifierProvider(
|
||||
builder: (context) => testModel,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user