cleanup code
This commit is contained in:
@@ -27,7 +27,6 @@ import 'package:fcs/pages/pickup/pickup_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_widgets.dart';
|
||||
@@ -38,7 +37,6 @@ import 'package:fcs/pages/widgets/task_button.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_vector_icons/flutter_vector_icons.dart';
|
||||
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
@@ -60,8 +58,8 @@ class _HomePageState extends State<HomePage> {
|
||||
bool login = false;
|
||||
bool _isLoading = false;
|
||||
List<bool> isSelected = [true, false];
|
||||
static FlutterLocalNotificationsPlugin _flutterLocalNotificationsPlugin =
|
||||
FlutterLocalNotificationsPlugin();
|
||||
// static FlutterLocalNotificationsPlugin _flutterLocalNotificationsPlugin =
|
||||
// FlutterLocalNotificationsPlugin();
|
||||
TextEditingController _searchCtl = TextEditingController();
|
||||
List<bool> isFcs = [false];
|
||||
|
||||
@@ -255,17 +253,17 @@ class _HomePageState extends State<HomePage> {
|
||||
btnCallback: () => Navigator.of(context).push<void>(
|
||||
CupertinoPageRoute(builder: (context) => CartonList())));
|
||||
|
||||
final shipmentBtn = TaskButton("shipment",
|
||||
icon: SimpleLineIcons.direction,
|
||||
btnCallback: () => Navigator.of(context)
|
||||
.push(CupertinoPageRoute(builder: (context) => ShipmentList())));
|
||||
// final shipmentBtn = TaskButton("shipment",
|
||||
// icon: SimpleLineIcons.direction,
|
||||
// btnCallback: () => Navigator.of(context)
|
||||
// .push(CupertinoPageRoute(builder: (context) => ShipmentList())));
|
||||
|
||||
final shipmentBtnFcs = TaskButton("shipment",
|
||||
icon: SimpleLineIcons.direction,
|
||||
btnCallback: () => Navigator.of(context).push(CupertinoPageRoute(
|
||||
builder: (context) => ShipmentList(
|
||||
forCustomer: false,
|
||||
))));
|
||||
// final shipmentBtnFcs = TaskButton("shipment",
|
||||
// icon: SimpleLineIcons.direction,
|
||||
// btnCallback: () => Navigator.of(context).push(CupertinoPageRoute(
|
||||
// builder: (context) => ShipmentList(
|
||||
// forCustomer: false,
|
||||
// ))));
|
||||
|
||||
final pickupBtnFcs = TaskButton("pickup.title",
|
||||
icon: SimpleLineIcons.direction,
|
||||
@@ -538,7 +536,7 @@ class _HomePageState extends State<HomePage> {
|
||||
|
||||
try {
|
||||
String term = _searchCtl.text;
|
||||
if (term == null || term.trim() == "") return;
|
||||
if ( term.trim() == "") return;
|
||||
var packageModel = Provider.of<PackageModel>(context, listen: false);
|
||||
Package? package = await packageModel.lookupPackage(term);
|
||||
if (package == null) {
|
||||
|
||||
Reference in New Issue
Block a user