InfiniteScrollTabView class
A widget for display combo of tabs and pages.
Internally, the tabs and pages will build as just Scrollable elements like
ListView
. But these have massive index range from double.negativeInfinity
to double.infinity, so that these can scroll infinitely.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- InfiniteScrollTabView
Constructors
-
InfiniteScrollTabView({Key? key, required int contentLength, required SelectIndexedTextBuilder tabBuilder, required SelectIndexedWidgetBuilder pageBuilder, IndexedTapCallback? onTabTap, BorderSide? separator, Color? backgroundColor, ValueChanged<
int> ? onPageChanged, Color indicatorColor = Colors.pinkAccent, double? indicatorHeight, double tabHeight = 44.0, double tabPadding = 12.0, Size? size, bool forceFixedTabWidth = false, double fixedTabWidthFraction = 0.5}) -
Creates a tab view widget that can scroll infinitely.
const
Properties
- backgroundColor → Color?
-
The color of tab list.
final
- contentLength → int
-
A length of tabs and pages.
final
- fixedTabWidthFraction → double
-
The value of fraction when fixed tab size used.
final
- forceFixedTabWidth → bool
-
The flag of using fixed tab width.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indicatorColor → Color
-
The color of indicator that shows selected page.
final
- indicatorHeight → double?
-
The height of indicator.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onPageChanged
→ ValueChanged<
int> ? -
A callback on changed selected page.
final
- onTabTap → IndexedTapCallback?
-
A callback for tapped tab element.
final
- pageBuilder → SelectIndexedWidgetBuilder
-
A callback for build page contents that can scroll infinitely.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- separator → BorderSide?
-
The border specification that displays between tabs and pages.
final
- size → Size?
-
The size constraint of this widget.
final
- tabBuilder → SelectIndexedTextBuilder
-
A callback for build tab contents that can scroll infinitely.
final
- tabHeight → double
-
The height of tab contents.
final
- tabPadding → double
-
The padding value of each tab contents.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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.
inherited