fix profile
This commit is contained in:
@@ -206,12 +206,12 @@ class _HomePageState extends State<HomePage> {
|
||||
CupertinoPageRoute(builder: (context) => PackageList())));
|
||||
|
||||
final receivingBtn = TaskButton("receiving.title",
|
||||
icon: Octicons.package,
|
||||
icon: MaterialCommunityIcons.inbox_arrow_down,
|
||||
btnCallback: () => Navigator.of(context).push<void>(
|
||||
CupertinoPageRoute(builder: (context) => ReceivingList())));
|
||||
|
||||
final processingBtn = TaskButton("processing.title",
|
||||
icon: Octicons.package,
|
||||
icon: FontAwesome.dropbox,
|
||||
btnCallback: () => Navigator.of(context).push<void>(
|
||||
CupertinoPageRoute(builder: (context) => ProcessingList())));
|
||||
final boxesBtn = TaskButton("boxes.name",
|
||||
@@ -287,7 +287,7 @@ class _HomePageState extends State<HomePage> {
|
||||
|
||||
List<Widget> widgets = [];
|
||||
if (user != null) {
|
||||
// true ? widgets.add(pickUpBtn) : "";
|
||||
true ? widgets.add(pickUpBtn) : "";
|
||||
!customer ? widgets.add(fcsShipmentBtn) : "";
|
||||
customer ? widgets.add(notiBtn) : "";
|
||||
user.hasStaffs() ? widgets.add(staffBtn) : "";
|
||||
|
||||
Reference in New Issue
Block a user