Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;Usage
Use this expression inside a stateful widget. Keep the current value in your widget state and update it in the callback.
ui.Slider(
value: volume,
min: 0,
max: 100,
onChanged: (value) => setState(() => volume = value),
)API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
Slider
const Slider({
super.key,
this.motion,
this.size,
required this.value,
required this.onChanged,
this.min = 0,
this.max = 100,
this.divisions,
this.mode = SliderMode.single,
this.rangeValues,
this.onRangeChanged,
this.activeColor,
this.inactiveColor,
this.thumbColor = const Color(0xFFFFFFFF),
this.disabledColor,
this.trackHeight,
this.thumbRadius,
this.thumbHeight,
this.showValue = false,
this.valuePopoverOffset = 8,
this.labelBuilder,
this.title,
this.maxLabel,
this.showTicks = true,
this.tickCount = 9,
this.marks = const [],
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
motion | ComponentMotion? | No | null |
size | ComponentSize? | No | null |
value | double | Yes | — |
onChanged | ValueChanged<double>? | Yes | — |
min | double | No | 0 |
max | double | No | 100 |
divisions | int? | No | null |
mode | SliderMode | No | SliderMode.single |
rangeValues | SliderRangeValues? | No | null |
onRangeChanged | ValueChanged<SliderRangeValues>? | No | null |
activeColor | Color? | No | null |
inactiveColor | Color? | No | null |
thumbColor | Color | No | const Color(0xFFFFFFFF) |
disabledColor | Color? | No | null |
trackHeight | double? | No | null |
thumbRadius | double? | No | null |
thumbHeight | double? | No | null |
showValue | bool | No | false |
valuePopoverOffset | double | No | 8 |
labelBuilder | String Function(double value)? | No | null |
title | String? | No | null |
maxLabel | String? | No | null |
showTicks | bool | No | true |
tickCount | int | No | 9 |
marks | List<SliderMark> | No | const [] |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/controls/slider/slider.dart
This reference is generated from the Slider declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

