zo_animated_border 1.0.1
zo_animated_border: ^1.0.1 copied to clipboard
Add animated, glowing, and gradient borders to any Flutter widget with zo_animated_border – a powerful and flexible package for modern UIs.
import 'package:flutter/material.dart';
import 'package:zo_animated_border/widget/zo_signal_border.dart';
import 'package:zo_animated_border/zo_animated_border.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: MyHomePage(title: ""),
// const AnimatedGradientBorderScreen(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.black,
appBar: AppBar(
backgroundColor: Colors.transparent,
title: Text(
widget.title,
style: TextStyle(color: Colors.white),
),
),
body: Center(
child: ZoSignalBorder(
maxRadius: 120,
ringColors: [
Colors.yellow,
Colors.orange,
Colors.red,
Colors.purple,
Colors.blue,
],
child: Container(
alignment: Alignment.center,
width: 130,
height: 130,
decoration:
BoxDecoration(color: Colors.white, shape: BoxShape.circle),
child: Text("Signal Border"),
),
),
)
// This trailing comma makes auto-formatting nicer for build methods.
);
}
}
// ZoSignalBorder(
// maxRadius: 120,
// ringColors: [
// Colors.yellow,
// Colors.orange,
// Colors.red,
// Colors.purple,
// Colors.blue,
// ],
// child: Container(
// width: 100,
// height: 100,
// decoration:
// BoxDecoration(color: Colors.white, shape: BoxShape.circle),
// ),
// ),