flutter_beautiful_popup 0.0.1 copy "flutter_beautiful_popup: ^0.0.1" to clipboard
flutter_beautiful_popup: ^0.0.1 copied to clipboard

outdated

A new Flutter package project.

flutter_beautiful_popup 中文 #

A flutter package to help you beautify your app popup, can be used in all platform.Live Demo.

Preview: #

Getting Started #

Add dependency to you pubspec.yaml:

dependencies:
    flutter_beautiful_popup: any

Import the dependency:

import 'package:beautiful_popup/main.dart';

And then you can display a popup with certain template like this:

final popup = BeautifulPopup(
  context: context,
  template: TemplateGift,
);
popup.show(
  title: 'String or Widget',
  content: 'String or Widget',
  // ↓ optional parameters
  actions: [
    popup.button(
      label: 'Close',
      onPressed: Navigator.of(context).pop,
    ),
  ]
);

If you wan to recolor the illustration of the template, you can call the recolor method, but this function takes a little time to caculate/offset the color cahnnel of the illustration:

final newColor = Colors.red.withOpacity(0.5);
await popup.recolor(newColor);

All available templates you can find in Live Demo.

Customize your own BeautifulPopupTemplate #

You can extend BeautifulPopupTemplate to customize your own template like this:

emm...
To be added later...

Contribution #

Licence #

MIT

153
likes
15
pub points
90%
popularity

Publisher

unverified uploader

A new Flutter package project.

Homepage

License

unknown (LICENSE)

Dependencies

auto_size_text, flutter, image

More

Packages that depend on flutter_beautiful_popup