BrightnessProSlider class

Example:

BrightnessProSlider(
  display: Display.vertical,
  sliderSize: 200,
  visibleWidget: true,
  sliderActiveColor: Colors.orange,
  );
Inheritance

Constructors

BrightnessProSlider({Key? key, Display display = Display.vertical, Color sliderActiveColor = Colors.blueAccent, Color sliderInActiveColor = Colors.grey, IconData downBrightnessIcon = CupertinoIcons.brightness, double? downBrightnessIconSize = 25.0, Color downBrightnessIconColor = Colors.blueAccent, IconData upBrightnessIcon = CupertinoIcons.brightness_solid, double? upBrightnessIconSize = 25.0, Color upBrightnessIconColor = Colors.blueAccent, bool visibleWidget = true, double sliderSize = 175, int? sliderDivisions = 50})

Properties

display Display
Determines the display orientation of the slider (vertical or horizontal).
final
downBrightnessIcon IconData
The icon used for decreasing the brightness.
final
downBrightnessIconColor Color
The color of the brightness decrease icon.
final
downBrightnessIconSize double?
The size of the brightness decrease icon.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sliderActiveColor Color
The color of the active portion of the slider.
final
sliderDivisions int?
The number of divisions/markers on the slider track.
final
sliderInActiveColor Color
The color of the inactive portion of the slider.
final
sliderSize double
The size of the slider widget.
final
upBrightnessIcon IconData
The icon used for increasing the brightness.
final
upBrightnessIconColor Color
The color of the brightness increase icon.
final
upBrightnessIconSize double?
The size of the brightness increase icon.
final
visibleWidget bool
Determines the initial visibility of the widget.
getter/setter pair

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<BrightnessProSlider>
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

Static Methods

brightnessProDragDirection({double width = 50, double height = 250, double? textFontSize, Color? textColor, Color? iconColor, IconData? brightnessIcon}) Widget
brightnessProSlideBottom({double width = 100, double height = 150, Widget brightnessIcon = const Icon(CupertinoIcons.brightness, size: 50), double btnHeight = 25, Color btnColor = Colors.white, double elevation = 3.0, Widget topBtnIcon = const Icon(CupertinoIcons.add, color: Colors.black), Widget bottomBtnIcon = const Icon(Icons.horizontal_rule, color: Colors.black)}) Widget