A new Flutter package.

Getting Started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.


Description: A widget that creates an Alert Dialog Box dynamically along with clickable Flat Buttons. This Dialog box can come in handy when a user needs to be prompted or double-checked about any action before progressing to the next Route. The default Implementation of this widget when the user doesn't pass any value to the widget gives an Alert Dialog box along with two buttons 'Yes' or 'No'. Usage: The user can pass in Flat Buttons, Title of the Alert and the content that is supposed to be displayed. The user can also pass on parameters like border radius, padding, shadow elevation etc. See AlertDialogContents and AlertDialogParameters class definitons for more information. The user also passes a callback function which is invoked when the Alert Dialog box is used. AlertDialogContents alertObj1 = new AlertDialogContents( FlatButton( child: Text("Accept",style: TextStyle(color: Colors.black),), onPressed: (){}, ), FlatButton( child: Text("Cancel",style: TextStyle(color: Colors.black),), onPressed: (){}, ), , "Alert Dialog Box Content ", Text("Alert Title"), ); AlertDialogParameters alertobj2 = new AlertDialogParameters(shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(20.0)), backgroundColor: Colors.red, elevation: 30, contentTextStyle: TextStyle( fontSize: 18.0, color: Colors.blueGrey), height: 500, width: 500, CustomAlertDialog(dialogContent: alertObj1, param: alertobj2, callbackAlert: onButtonTap) imports: import 'package:flutter/material.dart'; import 'package:flutter_widgets_library/utils/widget-classesUsed.dart'; import 'custom_AlertDialogs.dart'; Author: Anubhav Sinha