zo_animated_border 0.0.9
zo_animated_border: ^0.0.9 copied to clipboard
A package that provides a modern way to create gradient borders with animation in Flutter
import 'package:example/example/ex_zo_breathing_border.dart';
import 'package:example/example/ex_zo_dotted_border.dart';
import 'package:example/example/ex_zo_gradient_border.dart';
import 'package:example/example/ex_zo_multicolor_border.dart';
import 'package:example/example/ex_zo_pulsating_border.dart';
import 'package:example/example/ex_zo_snake_border.dart';
import 'package:flutter/material.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: 'Zo Animated Borders'),
// 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: ExZoMultiColorBorder(),
// This trailing comma makes auto-formatting nicer for build methods.
);
}
}