add rate service
This commit is contained in:
@@ -24,12 +24,10 @@ import 'package:fcs/pages/package/model/package_model.dart';
|
||||
import 'package:fcs/pages/package/package_info.dart';
|
||||
import 'package:fcs/pages/package/package_list.dart';
|
||||
import 'package:fcs/pages/processing/processing_list.dart';
|
||||
import 'package:fcs/pages/rates/shipment_rates.dart';
|
||||
import 'package:fcs/pages/receiving/receiving_list.dart';
|
||||
import 'package:fcs/pages/shipment/shipment_list.dart';
|
||||
import 'package:fcs/pages/staff/staff_list.dart';
|
||||
import 'package:fcs/pages/widgets/badge.dart';
|
||||
import 'package:fcs/pages/widgets/bottom_up_page_route.dart';
|
||||
import 'package:fcs/pages/widgets/bottom_widgets.dart';
|
||||
import 'package:fcs/pages/widgets/local_text.dart';
|
||||
import 'package:fcs/pages/widgets/progress.dart';
|
||||
@@ -254,12 +252,6 @@ class _HomePageState extends State<HomePage> {
|
||||
btnCallback: () => Navigator.of(context)
|
||||
.push(CupertinoPageRoute(builder: (context) => ShipmentList())));
|
||||
|
||||
final shipmentCostBtn = TaskButton("rate",
|
||||
icon: FontAwesomeIcons.calculator,
|
||||
btnCallback: () => Navigator.of(context).push(CupertinoPageRoute(
|
||||
builder: (context) => ShipmentRates(),
|
||||
)));
|
||||
|
||||
final fcsShipmentBtn = TaskButton("FCSshipment.title",
|
||||
icon: Ionicons.ios_airplane,
|
||||
btnCallback: () => Navigator.of(context).push(CupertinoPageRoute(
|
||||
@@ -324,7 +316,6 @@ class _HomePageState extends State<HomePage> {
|
||||
widgets.add(shipmentBtn);
|
||||
widgets.add(invoicesBtn);
|
||||
widgets.add(faqBtn);
|
||||
widgets.add(shipmentCostBtn);
|
||||
|
||||
List<Widget> widgetsFcs = [];
|
||||
if (user.hasPackages()) widgetsFcs.add(packagesBtnFcs);
|
||||
@@ -374,7 +365,8 @@ class _HomePageState extends State<HomePage> {
|
||||
);
|
||||
final signinBtn = FlatButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).push(CupertinoPageRoute(builder: (context) => SigninPage()));
|
||||
Navigator.of(context)
|
||||
.push(CupertinoPageRoute(builder: (context) => SigninPage()));
|
||||
},
|
||||
child: Text(
|
||||
"Sign In",
|
||||
|
||||
@@ -45,6 +45,10 @@ class MainModel extends ChangeNotifier {
|
||||
return this.user != null && this.user.hasSupport();
|
||||
}
|
||||
|
||||
bool rateEditable() {
|
||||
return this.user != null && this.user.hasSupport();
|
||||
}
|
||||
|
||||
bool paymentMethodsEditable() {
|
||||
return this.user != null && this.user.hasSupport();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user