public _BottomNavigationTile( BottomNavigationBarType?type, BottomNavigationBarItem item, Animation <float> animation, float?iconSize = null, VoidCallback onTap = null, ColorTween colorTween = null, float?flex = null, bool selected = false, float?selectedFontSize = null, float?unselectedFontSize = null, bool?showSelectedLabels = null, bool?showUnselectedLabels = null, string indexLabel = null ) { D.assert(type != null); D.assert(item != null); D.assert(animation != null); D.assert(selectedFontSize != null && selectedFontSize >= 0); D.assert(unselectedFontSize != null && unselectedFontSize >= 0); this.type = type; this.item = item; this.animation = animation; this.iconSize = iconSize; this.onTap = onTap; this.colorTween = colorTween; this.flex = flex; this.selected = selected; this.selectedFontSize = selectedFontSize.Value; this.unselectedFontSize = unselectedFontSize.Value; this.showSelectedLabels = showSelectedLabels ?? false; this.showUnselectedLabels = showUnselectedLabels ?? false; this.indexLabel = indexLabel; }
public _Label( Key key = null, ColorTween colorTween = null, Animation <float> animation = null, BottomNavigationBarItem item = null, float?selectedFontSize = null, float?unselectedFontSize = null, bool?showSelectedLabels = null, bool?showUnselectedLabels = null ) : base(key: key) { D.assert(colorTween != null); D.assert(animation != null); D.assert(item != null); D.assert(selectedFontSize != null); D.assert(unselectedFontSize != null); D.assert(showSelectedLabels != null); D.assert(showUnselectedLabels != null); this.colorTween = colorTween; this.animation = animation; this.item = item; this.selectedFontSize = selectedFontSize.Value; this.unselectedFontSize = unselectedFontSize.Value; this.showSelectedLabels = showSelectedLabels.Value; this.showUnselectedLabels = showUnselectedLabels.Value; }
public _ShiftingLabel( Key key = null, Animation <float> animation = null, BottomNavigationBarItem item = null ) : base(key: key) { this.animation = animation; this.item = item; }
public _FixedLabel( Key key = null, ColorTween colorTween = null, Animation <float> animation = null, BottomNavigationBarItem item = null ) : base(key: key) { this.colorTween = colorTween; this.animation = animation; this.item = item; }
List <Widget> _buildSingleTabItem(BottomNavigationBarItem item, bool active) { List <Widget> components = new List <Widget> { new Expanded( child: new Center(child: active?item.activeIcon: item.icon) ) }; if (item.title != null) { components.Add(item.title); } return(components); }
public _TileIcon( Key key = null, ColorTween colorTween = null, Animation <float> animation = null, float?iconSize = null, bool?selected = null, BottomNavigationBarItem item = null ) : base(key: key) { D.assert(selected != null); D.assert(item != null); this.colorTween = colorTween; this.animation = animation; this.iconSize = iconSize; this.selected = selected; this.item = item; }
public _BottomNavigationTile( BottomNavigationBarType?type, BottomNavigationBarItem item, Animation <float> animation, float?iconSize = null, VoidCallback onTap = null, ColorTween colorTween = null, float?flex = null, bool selected = false, string indexLabel = null ) { this.type = type; this.item = item; this.animation = animation; this.iconSize = iconSize; this.onTap = onTap; this.colorTween = colorTween; this.flex = flex; this.selected = selected; this.indexLabel = indexLabel; }