Fancy Gradient Cards package lets you add a beautiful gradient card to your Flutter app.
- Add the latest version of package to your pubspec.yaml (and run
dart pub get
):
dependencies:
fancy_gradient_card: ^0.0.1
- Import the package and use it in your Flutter App.
import 'package:fancy_gradient_card/fancy_gradient_card.dart';
There are a number of properties that you can modify:
- height
- width
- title
- subtitle
- network image
- gradient (color1 and color2)
class FancyCard extends StatelessWidget {
const FancyCard({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: const FancyGradientCard(
title: 'Hello World',
color1: Colors.lightGreenAccent,
color2: Colors.lightBlue,
image: 'https://docs.flutter.dev/assets/images/dash/Dashatars.png',
subtitle: 'This is a new package',
),
),
);
}
} |
- Make Some Animations with Containers.