clean_dialog 0.0.16 copy "clean_dialog: ^0.0.16" to clipboard
clean_dialog: ^0.0.16 copied to clipboard

A clean and minimalist dialog box for Flutter apps base on Material Dialog that is very customizable.

A Flutter package that creates a clean and minimalist dialog Supports null-safety and Flutter 3

Features #

  • Customizable
  • Lightweight

Getting started #

  • Install the package through this command
flutter pub get clean_dialog
  • Import the package inside the file you desire to include the dialog.
import 'package:clean_dialog/clean_dialog.dart';
  • Add this line to the onPress function of the desired Button or gesture detector.
showDialog(
    context: context,
    builder: (context) => CleanDialog(
    title: 'Error',
    content: 'We were not able to update your information.',
    backgroundColor: const Color(0XFFbe3a2c),
    titleTextStyle: const TextStyle(fontSize: 25, fontWeight: FontWeight.bold, color: Colors.white),
    contentTextStyle: const TextStyle(fontSize: 16, color: Colors.white),
    actions: [
        CleanDialogActionButtons(
            actionTitle: 'Cancel',
            onPressed: () => Navigator.pop(context),
        ),
        CleanDialogActionButtons(
            actionTitle: 'Try again',
            textColor: const Color(0XFF27ae61),
            onPressed: () {},
        ),
    ],
    ),
);

Output #

Example 1 Example 2
2
likes
150
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

A clean and minimalist dialog box for Flutter apps base on Material Dialog that is very customizable.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on clean_dialog