dialogify 1.0.1 copy "dialogify: ^1.0.1" to clipboard
dialogify: ^1.0.1 copied to clipboard

A customizable Flutter package to show animated confirmation and info dialogs with gradient backgrounds, blur, and bottom sheet or center position.

example/main.dart

import 'package:flutter/material.dart';
import 'package:dialogify/dialogify.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Dialogify Example',
      home: Scaffold(
        appBar: AppBar(title: const Text("Dialogify Example")),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              ElevatedButton(
                onPressed: () {
                  showConfirmationDialog(
                    context,
                    title: "Confirm Action",
                    subtitle: "Do you want to proceed?",
                    onConfirm: () => debugPrint("Confirmed!"),
                    onCancel: () => debugPrint("Cancelled!"),
                  );
                },
                child: const Text("Show Confirmation Dialog"),
              ),
              ElevatedButton(
                onPressed: () {
                  showInfoDialog(
                    context,
                    title: "Info",
                    subtitle: "This is an information dialog.",
                    onClose: () => debugPrint("Closed!"),
                  );
                },
                child: const Text("Show Info Dialog"),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
160
points
158
downloads
screenshot

Publisher

verified publisherprogrammerhasan.com

Weekly Downloads

A customizable Flutter package to show animated confirmation and info dialogs with gradient backgrounds, blur, and bottom sheet or center position.

Repository (GitHub)
View/report issues

Topics

#flutter #dialogs #confirmation-dialog #info-dialog #animation-dialog

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dialogify