buildBottomAppBar method

Widget buildBottomAppBar ({@required Widget child, bool showNotch: false, Color color, Color splashColor })

Simple implementation of Bottom App Bar which user can use it with easy configuration

Implementation

Widget buildBottomAppBar({
  @required Widget child,
  bool showNotch = false,
  Color color,
  Color splashColor,
}) {
  if (floatingActionButtonVisibility)
    this.fabLocation = FloatingActionButtonLocation.centerDocked;
  return BottomAppBar(
    shape: showNotch ? CircularNotchedRectangle() : null,
    color: color,
    child: child,
  );
}