Your First Flutter App: Polishing the App

Apr 12 2022 · Dart 2.14.1, Flutter 2.5, Visual Studio Code

Part 3: Style the App

24. Style the Slider

Episode complete

Play next episode

About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 23. Style Buttons Next episode: 25. Style the Slider Thumb

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

For our next task, we’re going to style our slider. Sliders come with a lot of different configuration aspects.

data: SliderTheme.of(context).copyWith(

trackShape: const RoundedRectSliderTrackShape(),
trackHeight: 8.0,
thumbColor: Colors.redAccent,
overlayShape: const RoundSliderOverlayShape(overlayRadius: 28.0),
    child: Padding(
    padding: const EdgeInsets.only(left: 32.0, right: 32.0),
    child: Column(
        children: <Widget>[
    padding: const EdgeInsets.only(top: 48.0, bottom: 32.0),
    child: Prompt(targetValue:,
    padding: const EdgeInsets.only(top: 16.0),
    child: HitMeButton(
        text: "HIT ME",
        onPressed: () {
    padding: const EdgeInsets.all(20.0),
    child: Score(
        totalScore: _model.totalScore,
        round: _model.round,
        onStartOver: _startNewGame,