BaseBarItem class

BaseBarItem use BottomNavigationBarItem by cupertino *** use cupertino = { forceUseMaterial: true } force use BottomNavigationBarItem on cuperitno. use BottomNavigationBarItem by material *** use material = { forceUseCupertino: true } force use BottomNavigationBarItem on material.

Inheritance

Constructors

BaseBarItem({Widget icon, Widget title, Widget activeIcon, Color backgroundColor, Map<String, dynamic> cupertino, Map<String, dynamic> material})
const

Properties

activeIcon Widget
BottomNavigationBarItem.activeIcon
final
backgroundColor Color
BottomNavigationBarItem.backgroundColor
final
cupertino Map<String, dynamic>
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
icon Widget
*** general properties start *** BottomNavigationBarItem.icon can be null, when is null, default will add an indicator
final
material Map<String, dynamic>
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
title Widget
BottomNavigationBarItem.title
final

Methods

build(BuildContext context) → dynamic
inherited
buildBefore(BuildContext context) → void
build之前调用
inherited
buildByCupertino(BuildContext context) Object
*** material properties end ***
override
buildByCupertinoBefore(BuildContext context) → void
buildByCupertino之前调用
inherited
buildByMaterial(BuildContext context) Object
build on material mode
override
buildByMaterialBefore(BuildContext context) → void
buildByMaterial之前调用
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
valueFromCupertino(String key, dynamic value) → dynamic
从cupertino获取key对应的值, 如果为null取value的值, 如果还是null则取material里的值
inherited
valueFromMap(Map<String, dynamic> map, String key, dynamic value) → dynamic
从cupertino获取key对应的值, 如果为null取value的值, 如果还是null则取material里的值
inherited
valueFromMaterial(String key, dynamic value) → dynamic
从material获取key对应的值, 如果为null取value的值, 如果还是null则取cupertino里的值
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited