buildByMaterial method

  1. @override
Widget buildByMaterial(
  1. BuildContext context
)

build on material mode

Implementation

@override
Widget buildByMaterial(BuildContext context) {
  final BaseAppBar? materialAppBar = valueOf('appBar', appBar);

  return Scaffold(
    appBar: materialAppBar?.build(context) as PreferredSizeWidget?,
    backgroundColor: valueOf('backgroundColor', backgroundColor),
    resizeToAvoidBottomInset: valueOf('resizeToAvoidBottomInset', resizeToAvoidBottomInset),
    body: valueOf('tabBuilder', tabBuilder)(context, valueOf('currentIndex', currentIndex)),
    bottomNavigationBar: BottomNavigationBar(
      items: valueOf('tabs', tabs),
      onTap: valueOf('onTap', onTap),
      currentIndex: valueOf('currentIndex', currentIndex),
      type: valueOf('type', type),
      selectedItemColor: valueOf('selectedItemColor', selectedItemColor),
      unselectedItemColor: valueOf('unselectedItemColor', unselectedItemColor),
      selectedFontSize: valueOf('selectedFontSize', selectedFontSize),
      unselectedFontSize: valueOf('unselectedFontSize', unselectedFontSize),
      iconSize: valueOf('iconSize', iconSize),
      elevation: valueOf('elevation', elevation),
      showSelectedLabels: valueOf('showSelectedLabels', showSelectedLabels),
      showUnselectedLabels: valueOf('showUnselectedLabels', showUnselectedLabels),
    ),
  );
}