neon_circular_timer 0.0.3 neon_circular_timer: ^0.0.3 copied to clipboard
A package that helps you to build a timer quickly with a beautiful UI, it's highly customizable you can change the color,the thickness of the timer,the clock text style.
import 'package:flutter/material.dart';
import 'package:neon_circular_timer/neon_circular_timer.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Material App',
home: Scaffold(
backgroundColor: Colors.grey.shade400,
appBar: AppBar(
title: Text('Material App Bar'),
),
body: Center(
child: NeonCircularTimer(
width: 200,
duration: 10,
strokeWidth: 10,
outerStrokeColor: Colors.grey.shade100,
fillGradient: LinearGradient(colors: [
Colors.greenAccent.shade200,
Colors.blueAccent.shade400
]),
neonGradient: LinearGradient(colors: [
Colors.greenAccent.shade200,
Colors.blueAccent.shade400
]),
strokeCap: StrokeCap.round,
fillColor: Colors.black12,
neonColor: Colors.blue.shade900),
),
));
}
}