custom_indicator 0.0.8
custom_indicator: ^0.0.8 copied to clipboard
Simple & customizable circle & linear indicator, you can customize the indicator to make it compatible with your usage.
example/example.dart
import 'package:flutter/material.dart';
import 'package:custom_indicator/custom_indicator.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Time Ago',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return const Scaffold(
body: Center(
child: CustomCircleIndicator(
value: 50,
backColor: Colors.red,
checkOnFinish: true,
),
),// This trailing comma makes auto-formatting nicer for build methods.
);
}
}