CupertinoTabBar constructor

const CupertinoTabBar(
  1. Color _backgroundColor,
  2. Color _foregroundColor,
  3. List<Widget> _widgets,
  4. Function _valueGetter,
  5. dynamic _onTap(
    1. int
    ),
  6. {Key? key,
  7. bool useSeparators = false,
  8. bool useShadow = true,
  9. double innerHorizontalPadding = 10.0,
  10. double innerVerticalPadding = 10.0,
  11. BorderRadius borderRadius = const BorderRadius.all(const Radius.circular(10.0)),
  12. Curve curve = Curves.linearToEaseOut,
  13. Duration duration = const Duration(milliseconds: 350),
  14. bool allowExpand = false,
  15. bool allowScrollable = false,
  16. bool fittedWhenScrollable = false,
  17. bool animateWhenScrollable = true,
  18. bool animateUntilScrolled = true,
  19. double outerHorizontalPadding = 10.0,
  20. double outerVerticalPadding = 0.0}
)

Implementation

const CupertinoTabBar(
  this._backgroundColor,
  this._foregroundColor,
  this._widgets,
  this._valueGetter,
  this._onTap, {
  Key? key,
  this.useSeparators: false,
  this.useShadow: true,
  this.innerHorizontalPadding: 10.0,
  this.innerVerticalPadding: 10.0,
  this.borderRadius: const BorderRadius.all(const Radius.circular(10.0)),
  this.curve: Curves.linearToEaseOut,
  this.duration: const Duration(milliseconds: 350),
  this.allowExpand: false,
  this.allowScrollable: false,
  this.fittedWhenScrollable: false,
  this.animateWhenScrollable: true,
  this.animateUntilScrolled: true,
  this.outerHorizontalPadding: 10.0,
  this.outerVerticalPadding: 0.0,
}) : super(key: key);