animated_border_card 1.0.0 copy "animated_border_card: ^1.0.0" to clipboard
animated_border_card: ^1.0.0 copied to clipboard

A customizable animated border card with gradient sweep animation.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:animated_border_card/animated_border_card.dart';

void main() {
  runApp(const MaterialApp(home: DemoScreen()));
}

class DemoScreen extends StatelessWidget {
  const DemoScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("Animated Border Card")),
      body: Center(
        child: AnimatedGradientBorderCard(
          onTap: () {},
          title: "Refer & Earn",
          subtitle: "Invite friends and earn rewards",
          icon: Icons.card_giftcard,
          fontFamily: 'Poppins',
          primaryColor: Colors.deepPurple,
          gradientColors: [
            Colors.deepPurple,
            Colors.purple,
            Colors.pink,
            Colors.orange,
          ],
        ),
      ),
    );
  }
}
2
likes
130
points
48
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable animated border card with gradient sweep animation.

License

MIT (license)

Dependencies

flutter

More

Packages that depend on animated_border_card