stack_gradient_card 0.0.2 copy "stack_gradient_card: ^0.0.2" to clipboard
stack_gradient_card: ^0.0.2 copied to clipboard

A Flutter package for both android and iOS which provides a responsive Gradient Card. Works on both android and iOS.

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.com/licensed-image?q=tbn:ANd9GcTxtdTAGf3obR31GaqP0LrXhTittDPioE0Vd4YKrvpiYh_GOSAKgtgybCle6jBSry-T56yloU16PxwPsPY',
              actionText: 'Action',
              actionColor: Colors.black,
              onPressed: () {
                // Define the action when the button is pressed
              },
            ),
2
likes
130
points
3
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for both android and iOS which provides a responsive Gradient Card. Works on both android and iOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, responsive_sizer

More

Packages that depend on stack_gradient_card