Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
974 B
2
Indexable
//slider
                  SliderTheme(
                    data: SliderTheme.of(context).copyWith(
                      inactiveTrackColor: Color(0xFF8D8E98),
                      activeTrackColor: Colors.white,
                      thumbColor: Color(0xFFEB1555),
                      overlayColor: Color(0x29EB1555),
                      thumbShape:
                          RoundSliderThumbShape(enabledThumbRadius: 15.0),
                      overlayShape:
                          RoundSliderOverlayShape(overlayRadius: 30.0),
                    ),
                    child: Slider(
                      value: tinggi.toDouble(),
                      min: 0.0,
                      max: 220.0,
                      onChanged: (double newValue) {
                        setState(() {
                          tinggi = newValue.round();
                        });
                      },
                    ),
                  ),