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

flutter_custom_alertbox is a reusable Flutter package that provides a clean and customizable alert box

flutter_custom_alertbox #

flutter_custom_alertbox is a reusable Flutter package that provides a clean and customizable alert box.


Features #

  • ✅ Customizable alert box with title
  • ✅ Customizable Icons
  • ✅ Customizable Background
  • ✅ Customizable Text
  • ✅ Lightweight and easy to use

Priview #

Example Image Example Image

Getting started #

Add the dependency to your pubspec.yaml:

dependencies:
  flutter_custom_alertbox: ^0.0.1


Usage #

ElevatedButton(
   onPressed: (){
        Customalert().show(
           context,
           message: "Something Went Wrong!",
           closeduration: Duration(seconds: 2),
           backgroundColor: Colors.red,
           textStyle: TextStyle(
                        color: Colors.white,fontSize: 16),
                        isIcon: true,
                        icn: Icon(Icons.error_outline, color: Colors.white, size: 30
                       );
      },
        style: ButtonStyle
                 (
                    backgroundColor: WidgetStateColor.resolveWith((states)=> Colors.green)
                  ),
        child: Text("Register",style: TextStyle(color: Colors.white),))

0
likes
130
points
29
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

flutter_custom_alertbox is a reusable Flutter package that provides a clean and customizable alert box

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_custom_alertbox