zo_animated_border
A package that gives us a modern way to show gradient border and animate it
Getting started
First, add zo_animated_border as a dependency in your pubspec.yaml file
dependencies:
flutter:
sdk: flutter
zo_animated_border : ^[version]
Import the package
import 'package:zo_animated_border/zo_animated_border.dart';
Usage
ZoAnimatedGradientBorder(
width: 200,
height: 200,
borderRadius: 100,
borderThickness: 4,
gradientColor: [Colors.yellow,Colors.orange],
duration: Duration(seconds: 4),
child: Container(
alignment: Alignment.center,
color: Colors.black,
child: Text(
"Color",
style:TextStyle(color:Colors.black),
),
),
)
Feel free to post a feature requests or report a bug here.