clean_dialog

Creator: coderz1093

Last updated:

0 purchases

clean_dialog Image
clean_dialog Images

Languages

Categories

Add to Cart

Description:

clean dialog

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
copied to clipboard

Import the package inside the file you desire to include the dialog.

import 'package:clean_dialog/clean_dialog.dart';
copied to clipboard

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: () {},
),
],
),
);
copied to clipboard
Output #

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.