SHARE
TWEET

Untitled

a guest Jun 25th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. final List<DashboardItems> dashboardItems = [
  2.     DashboardItems(menuItem: MenuItems.dashboard, title: Strings.drawerItemHome, icon: 'assets/icons/home.png', forActiveUser: false),
  3.     DashboardItems(menuItem: MenuItems.healthProfile, title: Strings.drawerItemProfile, icon: 'assets/icons/cannabis.png', forActiveUser: true),
  4.   ];
  5.      
  6. decoration: BoxDecoration(
  7.     color:
  8.           user != null && user.userActive == 1 ? Colors.white :
  9.           user == null || (user != null && user.userActive == 0) || !item.forActiveUser ? Colors.white :
  10.     Colors.grey,
  11.         borderRadius: BorderRadius.all(Radius.circular(5.0)),
  12.     boxShadow: [
  13.       BoxShadow(
  14.         blurRadius: 0.5,
  15.         color: Colors.black,
  16.         offset: Offset(0.0, 0.0),
  17.       )
  18.     ]),
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top