alert_box_plus 0.0.1 copy "alert_box_plus: ^0.0.1" to clipboard
alert_box_plus: ^0.0.1 copied to clipboard

customizable alert dialogs

alert_box_plus

Inbuilt container is a custom container which can be used in your Flutter app. Installation

Add the latest version of package to your pubspec.yaml (and rundart pub get):

dependencies: alert_box_plus: ^0.0.1

Import the package and use it in your Flutter App.

import 'package:alert_box_plus/alert_box_plus.dart';

Example

There are a number of properties that you can modify:

button name
title
description
image

Code

class _MyHomePageState extends State<MyHomePage> {
  TextEditingController textEditingController = TextEditingController();
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          backgroundColor: Theme.of(context).colorScheme.inversePrimary,
          title: Text(widget.title),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: [
              ElevatedButton(onPressed: (){
                smartAlertDialog(
                    context, textEditingController);
              }, child: Text('DialogActions')
              ),
              ElevatedButton(onPressed: (){
                smartAlertDialog2(
                    context, button1Text: 'yes',
                    button2Text: 'no');
              }, child: Text('DialogActions with Two Buttons')
              ),

              ElevatedButton(onPressed: (){
                smartAlertDialog3(
                  context, );
              }, child: Text('DialogAction with One Button')
              ),
            ],
          ),
        )
    );
  }
}

[Alt text]

0
likes
0
points
53
downloads

Publisher

unverified uploader

Weekly Downloads

customizable alert dialogs

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on alert_box_plus