custom_alert_dialog_box 1.0.2 copy "custom_alert_dialog_box: ^1.0.2" to clipboard
custom_alert_dialog_box: ^1.0.2 copied to clipboard

To be able to show a custom alert box easlly. Simple to import package in your dart file. You can also easily implement this package by going through the example tab.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Custom Alert Dialog Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Custom Alert Dialog Example'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'Custom Alert Dialog Box Example',
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () async {
          await CustomAlertDialogBox.showCustomAlertBox(
            context: context,
            willDisplayWidget: Container(
              child: Text('My custom alert dialog box'),
            ),
          );
        },
        tooltip: 'Show Custom Alert Box',
        child: Icon(Icons.message),
      ),
    );
  }
}
4
likes
160
points
435
downloads

Publisher

unverified uploader

Weekly Downloads

To be able to show a custom alert box easlly. Simple to import package in your dart file. You can also easily implement this package by going through the example tab.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on custom_alert_dialog_box