title: Flutter using if statement for change widget color
body: <p>in my application user can be register and my application can save user information with <code>sqlite</code>, each registered user can be verify his mobile number with <code>sms</code> and user can active his account on application by <code>userActive</code> item on database</p>
  
  <p>now, i have some list of items witch that created by class:</p>
  
  <pre><code>  final List&lt;DashboardItems&gt; dashboardItems = [
      DashboardItems(menuItem: MenuItems.dashboard, title: Strings.drawerItemHome, icon: 'assets/icons/home.png', forActiveUser: false),
      DashboardItems(menuItem: MenuItems.healthProfile, title: Strings.drawerItemProfile, icon: 'assets/icons/cannabis.png', forActiveUser: true),
    ];
  </code></pre>
  
  <p>in application and there are some items for registered user and who active account by sms, in <code>DashboardItems</code> class this field is <code>forActiveUser</code></p>
  
  <p>for example suppose i have simple <code>Container</code>, who can i colorize white that for active users?</p>
  
  <p>with below code i should be have one white container as <code>MenuItems.dashboard</code> and one gray container as <code>MenuItems.healthProfile</code>.</p>
  
  <p>but i have two <code>white</code> container</p>
  
  <pre><code>decoration: BoxDecoration(
      color:
            user != null &amp;&amp; user.userActive == 1 ? Colors.white :
            user == null || (user != null &amp;&amp; user.userActive == 0) || !item.forActiveUser ? Colors.white :
      Colors.grey,
          borderRadius: BorderRadius.all(Radius.circular(5.0)), 
      boxShadow: [
        BoxShadow(
          blurRadius: 0.5,
          color: Colors.black,
          offset: Offset(0.0, 0.0),
        )
      ]),
  </code></pre>
  
  <h1>UPDATED:</h1>
  
  <p><code>container</code> should be white when:</p>
  
  <pre><code>`user!=null` and `user.userActive`==1   &lt;-- all containers should be white
  </code></pre>
  
  <p>otherwise:</p>
  
  <pre><code>`user` is `null` &amp;&amp; `user!=null and user.userActive==0` &lt;-- containers should be gray when `forActiveUser` is true
  </code></pre>