📜  颤动滑块颜色 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:02.940000             🧑  作者: Mango

代码示例1
Slider(
            activeColor: Colors.red, // The color to use for the portion of the slider track that is active.
            inactiveColor: Colors.red[100], // The color for the inactive portion of the slider track.
            thumbColor: Colors.red,
            min: 0,
            max: 100,
            value: _currentSliderValue,
            onChanged: (value) {
              setState(() {
                _currentSliderValue = value;
              });
            },
          ),