IosSwitchButton class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- IosSwitchButton
Constructors
- IosSwitchButton({@required dynamic onChanged(bool), Color color = const Color(0xfff5f5f5), RoundedRectangleBorder buttonShape = const RoundedRectangleBorder(), EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 0), double iosSwitchSize = 28, bool isActive = true, double height = 50, double width = double.infinity, Widget bodyWidget, bool alignSwitchToRight = true, Duration duration = const Duration(milliseconds: 150), Color switchActiveBackgroundColor = const Color(0xff00e676), Color switchDisableBackgroundColor = const Color(0xffe0e0e0), Color switchActiveBorderColor = Colors.grey, Color switchDisableBorderColor = Colors.transparent, double switchActiveBorderWidth = 0, double switchDisableBorderWidth = 1, double switchMainBorderRadiusValue = 150, Color switchDotActiveColor = Colors.white, Color switchDotdisableColor = Colors.white})
Properties
- alignSwitchToRight ↔ bool
-
read / write
- bodyWidget ↔ Widget
-
read / write
-
read / write
- color ↔ Color
-
read / write
- duration ↔ Duration
-
read / write
- hashCode → int
- The hash code for this object.
- height ↔ double
-
height width
read / write
- iosSwitchSize ↔ double
-
read / write
- isActive ↔ bool
-
read / write
- key → Key
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onChanged ↔ dynamic Function(bool)
-
read / write
- padding ↔ EdgeInsets
-
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- switchActiveBackgroundColor ↔ Color
-
read / write
- switchActiveBorderColor ↔ Color
-
read / write
- switchActiveBorderWidth ↔ double
-
read / write
- switchDisableBackgroundColor ↔ Color
-
read / write
- switchDisableBorderColor ↔ Color
-
read / write
- switchDisableBorderWidth ↔ double
-
read / write
- switchDotActiveColor ↔ Color
-
read / write
- switchDotdisableColor ↔ Color
-
read / write
- switchMainBorderRadiusValue ↔ double
-
read / write
- width ↔ double
-
read / write
Methods
-
body(
dynamic setState, dynamic context) → dynamic -
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.@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