brightnessProSlideBottom static method
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),
Implementation
static Widget brightnessProSlideBottom({
/// The width of the slider widget.
/// This defines how wide the slider will be on the screen.
final double width = 100,
/// The height of the slider widget.
/// This sets the vertical size of the slider.
final double height = 150,
/// A widget to display the icon representing brightness.
/// This can be any widget such as an [Icon] or an [Image].
final Widget brightnessIcon =
const Icon(CupertinoIcons.brightness, size: 50),
/// Specifies the height of the button used in the slider.
/// This determines how tall the button within the slider will be.
final double btnHeight = 25,
/// Defines the color of the button in the slider.
/// This sets the button's color, which can be any [Color].
final Color btnColor = Colors.white,
/// Sets the elevation of the button, giving it a shadow effect.
/// This adds a visual depth to the button.
final double elevation = 3.0,
/// A widget to display the icon at the top button.
/// This can be any widget such as an [Icon] or an [Image].
final Widget topBtnIcon = const Icon(
CupertinoIcons.add,
color: Colors.black,
),
/// A widget to display the icon at the bottom button.
/// This can be any widget such as an [Icon] or an [Image].
final Widget bottomBtnIcon = const Icon(
Icons.horizontal_rule,
color: Colors.black,
),
}) {
return BrightnessProSlideBottom(
width: width,
height: height,
btnHeight: btnHeight,
btnColor: btnColor,
elevation: elevation,
topBtnIcon: topBtnIcon,
bottomBtnIcon: bottomBtnIcon,
brightnessIcon: brightnessIcon,
);
}