beautiful_alert_dialog 0.0.7 copy "beautiful_alert_dialog: ^0.0.7" to clipboard
beautiful_alert_dialog: ^0.0.7 copied to clipboard

A beautiful and custom alert dialog box by this you can show alert dialog box easily.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyCustomAlertDialogPage(),
    );
  }
}

class MyCustomAlertDialogPage extends StatefulWidget {
  const MyCustomAlertDialogPage({Key? key}) : super(key: key);

  @override
  _MyCustomAlertDialogPageState createState() =>
      _MyCustomAlertDialogPageState();
}

class _MyCustomAlertDialogPageState extends State<MyCustomAlertDialogPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Center(
          child: Text("Custom Alert Dialog"),
        ),
        floatingActionButton: FloatingActionButton.extended(
          onPressed: () async {
            await CustomAlertBox.showCustomAlertBox(
                context: context,
                willDisplayWidget: Container(
                  height: 200,
                  alignment: Alignment.center,
                  child: Text("Helo"),
                ));
          },
          label: Text('Open alert dialog'),
          icon: Icon(Icons.open_in_browser),
          backgroundColor: Colors.pink,
        ));
  }
}
0
likes
140
points
59
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A beautiful and custom alert dialog box by this you can show alert dialog box easily.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on beautiful_alert_dialog