createMaterialWidget method
Implementation
@override
BottomAppBar createMaterialWidget(BuildContext context) {
final data = material?.call(context, platform(context));
var bar = BottomNavigationBar(
items: data?.items ?? items ?? const <BottomNavigationBarItem>[],
currentIndex: data?.currentIndex ?? currentIndex ?? 0,
onTap: data?.itemChanged ?? itemChanged,
iconSize: data?.iconSize ?? 24.0,
fixedColor: data?.activeColor,
type: data?.type,
key: data?.bottomNavigationBarKey,
backgroundColor: data?.backgroundColor ?? backgroundColor,
elevation: data?.elevation ?? 8.0,
selectedFontSize: data?.selectedFontSize ?? 14.0,
selectedItemColor: data?.selectedItemColor,
showSelectedLabels: data?.showSelectedLabels ?? true,
showUnselectedLabels: data?.showUnselectedLabels,
unselectedFontSize: data?.unselectedFontSize ?? 12.0,
unselectedItemColor: data?.unselectedItemColor,
selectedIconTheme: data?.selectedIconTheme ?? const IconThemeData(),
selectedLabelStyle: data?.selectedLabelStyle,
unselectedIconTheme: data?.unselectedIconTheme ?? const IconThemeData(),
unselectedLabelStyle: data?.unselectedLabelStyle,
mouseCursor: data?.mouseCursor,
enableFeedback: data?.enableFeedback,
landscapeLayout: data?.landscapeLayout,
);
return BottomAppBar(
child: bar,
color: data?.backgroundColor ?? backgroundColor,
elevation: data?.elevation,
key: data?.widgetKey ?? widgetKey,
shape: data?.shape,
clipBehavior: data?.clipBehavior ?? Clip.none,
notchMargin: data?.notchMargin ?? 4.0,
);
}