Features

Installing

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  stack_gradient_card: ^0.0.2

2. Install it

You can install packages from the command line:

with pub:

pub get

with Flutter:

flutter pub get

3. Import it

Now in your Dart code, you can use:

import 'package:stack_gradient_card/stack_gradient_card';

Usage

stack_gradient_card is a widget that gives you image, like button, elevated button and color to choose to make it more beautiful. When you want to add a card simply use it like:

StackCard(
              gradientColors: [Colors.grey, Colors.black],
              name: 'Virat',
              imageUrl:
                  'https://encrypted-tbn2.gstatic.cn/licensed-image?q=tbn:ANd9GcTxtdTAGf3obR31GaqP0LrXhTittDPioE0Vd4YKrvpiYh_GOSAKgtgybCle6jBSry-T56yloU16PxwPsPY',
              actionText: 'Action',
              actionColor: Colors.black,
              onPressed: () {
                // Define the action when the button is pressed
              },
            ),