flutter_popup_card 0.0.5 copy "flutter_popup_card: ^0.0.5" to clipboard
flutter_popup_card: ^0.0.5 copied to clipboard

A Flutter plugin to create a card or custom widget that can popup overtop of your main app.

Flutter popup card #

pub package

A lightweight plugin to create a card or custom widget that can popup overtop of your main app.

Mobile example image Mobile example recording

Usage #

This plugin is based off the showDialog function built in to Flutter and operates very similarly.

To show a popup use showPopupCard.

Use the PopupCard widget for a Material style look.

This sample shows how to show a simple yellow popup card:

showPopupCard(
  context: context,
  builder: (context) {
    return PopupCard(
      elevation: 8,
      color: Colors.yellow,
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(12.0),
      ),
      child: const Padding(
        padding: EdgeInsets.all(16.0),
        child: Text('This is a popup card'),
      ),
    );
  },
  offset: const Offset(-16, 70),
  alignment: Alignment.topRight,
  useSafeArea: true,
);

See full example app here.

7
likes
160
pub points
82%
popularity

Publisher

verified publishercurrie.page

A Flutter plugin to create a card or custom widget that can popup overtop of your main app.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_popup_card