Esempio n. 1
0
 public CustomTabBarConnector(
     List <Widget> controllers,
     List <CustomTabBarItem> items,
     Color backgroundColor,
     SelectTabCallBack tapCallBack = null,
     Key key = null
     ) : base(key: key)
 {
     this.tapCallBack     = tapCallBack;
     this.backgroundColor = backgroundColor;
     this.controllers     = controllers;
     this.items           = items;
 }
Esempio n. 2
0
 public CustomTabBar(
     List <Widget> controllers,
     List <CustomTabBarItem> items,
     Color backgroundColor,
     SelectTabCallBack tapCallBack = null,
     Key key = null
     ) : base(key: key)
 {
     D.assert(controllers != null && controllers.Count > 1);
     D.assert(items != null && items.Count > 1);
     D.assert(controllers.Count == items.Count);
     this.controllers     = controllers;
     this.items           = items;
     this.backgroundColor = backgroundColor;
     this.tapCallBack     = tapCallBack;
 }
Esempio n. 3
0
 public CustomTabBar(
     List <Widget> controllers,
     List <CustomTabBarItem> items,
     List <string> notifications,
     Color backgroundColor,
     SelectTabCallBack tapCallBack = null,
     int initialTabIndex           = 0,
     Key key = null
     ) : base(key: key)
 {
     D.assert(controllers != null && controllers.Count > 1);
     D.assert(items != null && items.Count > 1);
     D.assert(controllers.Count == items.Count);
     this.controllers     = controllers;
     this.items           = items;
     this.backgroundColor = backgroundColor;
     this.tapCallBack     = tapCallBack;
     this.notifications   = notifications;
     this.initialTabIndex = initialTabIndex;
 }