WpPivot class
This is a Flutter implementation of pivot style tabs in Windows Phone 7.x and 8.x Pass a list of string you want as tabs and voila ! This plugin is currently using GlobalKey for parent->child communication, which is not ideal. This will be improved in the nexr update
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- WpPivot
- Implemented types
Constructors
-
WpPivot({required Key key, required List<
String> tabTitles, Color backgroundColor = Colors.black, Color selectedTabColor = Colors.white, Color unselectedTabColor = Colors.white54, FontWeight fontWeight = FontWeight.w200, double fontSize = 36, FontWeight titleFontWeight = FontWeight.bold, double titleFontSize = 16, Color titleColor = Colors.white, required String title}) -
const
Properties
- backgroundColor → Color
-
Background color of the Appbar and tab bar, default is Colors.black
final
- fontSize → double
-
Font size of the tab names, default is
36
final - fontWeight → FontWeight
-
Set the font weight of the tab options, default is FontWeight.w200.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- preferredSize → Size
-
The size this widget would prefer if it were otherwise unconstrained.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedTabColor → Color
-
Color of selected tab, default is Colors.white
final
-
tabTitles
→ List<
String> -
List of all the tab names
final
- title → String
-
Set the pivot title
final
- titleColor → Color
-
Color of pivot title, default is Colors.white
final
- titleFontSize → double
-
Font size of the pivot title, default is
16
final - titleFontWeight → FontWeight
-
Set the font weight of the tab options, default is FontWeight.w200.
final
- unselectedTabColor → Color
-
Color of rest of the tabs, default is Colors.white54
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
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.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