AdaptiveScrollableTabsView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AdaptiveScrollableTabsView
Constructors
-
AdaptiveScrollableTabsView({@required List<
Widget> pages, @required List<BottomNavigationBarItem> items, int startTab = 0, PreferredSizeWidget appBar, int currentPage = 0, Color selectedColor = Colors.blue, Color unselectedColor = Colors.grey, Color backgroundColor = Colors.white, Curve animationCurve = Curves.fastOutSlowIn, Duration animationDurationForTab = const Duration(milliseconds: 500), double elevation, double iconSize = 24, double selectedFontSize = 14, double unselectedFontSize = 12, TextStyle selectedLabelStyle, TextStyle unselectedLabelStyle, bool showSelectedLabels = true, bool showUnselectedLabels = true, bool allowScroll = true, Widget drawer, ValueChanged<int> onTap})
Properties
- allowScroll → bool
-
Enable or Disable Tabs Scrolling
final
- animationCurve → Curve
-
Navigating through tabs animation curve
final
- animationDurationForTab → Duration
-
Navigating through tabs using tab bar duration
final
- appBar → PreferredSizeWidget
-
The top app bar for your screen
final
- backgroundColor → Color
-
Bottom Tab Bar Background Color
final
- currentPage ↔ int
-
The current tab
read / write
- drawer → Widget
-
Drawer
final
- elevation → double
-
elevation of the Bottom Tab Bar
final
- hashCode → int
- The hash code for this object.
- iconSize → double
-
Icon Size of items
final
-
items
→ List<
BottomNavigationBarItem> -
The Bottom Tab Bar Items which will navigate through tabs
final
- key → Key
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onTap
↔ ValueChanged<
int> -
This will pass the selected page index to you
read / write
-
pages
→ List<
Widget> -
The widgets that you want to display in the tabs
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- selectedColor → Color
-
Selected Item Color
final
- selectedFontSize → double
-
Font Size for selected item
final
- selectedLabelStyle → TextStyle
-
Font Style for selected item
final
- showSelectedLabels → bool
-
Choose either you want to show the selected item label or just show the icon
final
- showUnselectedLabels → bool
-
Choose either you want to show the unselected items label or just show their icon
final
- startTab → int
-
The Initial tab for the screen
final
- unselectedColor → Color
-
UnSelected Item Color
final
- unselectedFontSize → double
-
Font Size for unselected item
final
- unselectedLabelStyle → TextStyle
-
Font Style for unselected item
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _AdaptiveScrollableTabsViewState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.@protectedinherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String name, DiagnosticsTreeStyle style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
@nonVirtualinherited