segment_bar 0.0.3 segment_bar: ^0.0.3 copied to clipboard
SegmentBar is a lightweight package for creating a customizable segment bar widget in Flutter, with support for different colors and percentage values for each segment.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add segment_bar
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
segment_bar: ^0.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:segment_bar/segment_bar.dart';