android release 1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import 'package:fcs/data/provider/messaging_fcm.dart';
|
||||
import 'package:fcs/firebase_options.dart';
|
||||
import 'package:fcs/firebase_options_prod.dart';
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'package:firebase_messaging/firebase_messaging.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -20,5 +20,5 @@ Future<void> main() async {
|
||||
color: Colors.blue,
|
||||
apiURL: "https://asia-northeast1-fcs-prod1.cloudfunctions.net/API13",
|
||||
level: Level.ALL);
|
||||
runApp(App(title: "FCS"));
|
||||
runApp(App(title: "FCS Logistics"));
|
||||
}
|
||||
|
||||
24
lib/main.dart
Normal file
24
lib/main.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
import 'package:fcs/data/provider/messaging_fcm.dart';
|
||||
import 'package:fcs/firebase_options_prod.dart';
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'package:firebase_messaging/firebase_messaging.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
|
||||
import 'app.dart';
|
||||
import 'config.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await Firebase.initializeApp(
|
||||
options: DefaultFirebaseOptions.currentPlatform,
|
||||
);
|
||||
FirebaseMessaging.onBackgroundMessage(backgroundMessageHandler);
|
||||
|
||||
Config(
|
||||
flavor: Flavor.PRODUCTION,
|
||||
color: Colors.blue,
|
||||
apiURL: "https://asia-northeast1-fcs-prod1.cloudfunctions.net/API13",
|
||||
level: Level.ALL);
|
||||
runApp(App(title: "FCS"));
|
||||
}
|
||||
@@ -352,19 +352,19 @@ class _HomePageState extends State<HomePage> {
|
||||
if (user.joined) {
|
||||
widgets.add(packagesBtn);
|
||||
// widgets.add(shipmentBtn);
|
||||
widgets.add(invoicesBtn);
|
||||
// widgets.add(invoicesBtn);
|
||||
|
||||
if (user.hasAdmin() || user.hasSupport()) widgetsFcs.add(rateBtnFcs);
|
||||
if (user.hasPackages()) widgetsFcs.add(packagesBtnFcs);
|
||||
// if (user.hasShipment()) widgetsFcs.add(shipmentBtnFcs);
|
||||
if (user.hasShipment()) widgetsFcs.add(pickupBtnFcs);
|
||||
if (user.hasInvoices()) widgetsFcs.add(invoicesBtnFcs);
|
||||
// if (user.hasShipment()) widgetsFcs.add(pickupBtnFcs);
|
||||
// if (user.hasInvoices()) widgetsFcs.add(invoicesBtnFcs);
|
||||
|
||||
if (user.hasFcsShipments()) widgetsFcs.add(fcsShipmentBtn);
|
||||
if (user.hasReceiving()) widgetsFcs.add(receivingBtn);
|
||||
if (user.hasProcessing()) widgetsFcs.add(processingBtn);
|
||||
if (user.hasCarton()) widgetsFcs.add(cartonBtn);
|
||||
if (user.hasDeliveries()) widgetsFcs.add(deliveryBtn);
|
||||
// if (user.hasFcsShipments()) widgetsFcs.add(fcsShipmentBtn);
|
||||
// if (user.hasReceiving()) widgetsFcs.add(receivingBtn);
|
||||
// if (user.hasProcessing()) widgetsFcs.add(processingBtn);
|
||||
// if (user.hasCarton()) widgetsFcs.add(cartonBtn);
|
||||
// if (user.hasDeliveries()) widgetsFcs.add(deliveryBtn);
|
||||
if (user.hasCustomers()) widgetsFcs.add(customersBtn);
|
||||
if (user.hasAdmin()) widgetsFcs.add(discountBtn);
|
||||
if (user.hasStaffs()) widgetsFcs.add(staffBtn);
|
||||
@@ -512,7 +512,7 @@ class _HomePageState extends State<HomePage> {
|
||||
profileBtn,
|
||||
]
|
||||
: <Widget>[
|
||||
mainModel.isPinLogin ? pinLogoutBtn : pinLoginBtn,
|
||||
// mainModel.isPinLogin ? pinLogoutBtn : pinLoginBtn,
|
||||
fcsToggle,
|
||||
profileBtn,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user