Skip to content

Instantly share code, notes, and snippets.

@cerberodev
Created March 5, 2020 19:22
Show Gist options
  • Save cerberodev/2f80629bb292e29de872bdbd249840cf to your computer and use it in GitHub Desktop.
Save cerberodev/2f80629bb292e29de872bdbd249840cf to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:flutter_seekbar/seekbar/seekbar.dart';
Container(
width: 300,
height: 15.0,
color: Color(0xFFEDEFF2),
child: SeekBar(
progresseight: 10,
value: _value.toDouble(),
backgroundColor: Color(0xFFEDEFF2),
sectionCount: plans.length - 1,
sectionRadius: 3,
sectionColor: Colors.black,
sectionUnSelecteColor: Colors.black,
hideBubble: true,
min: 0,
max: plans.length.toDouble() - 1,
progressColor: Color(0xFF03B9F4),
onValueChanged: (value) {
setState(() {
_value = value.value.toInt();
});
},
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment