adaptive_dialog
library
Functions
showAlertDialog <T > ({required BuildContext context , String ? title , String ? message , List <AlertDialogAction <T > > actions = const [] , bool barrierDismissible = true , AdaptiveStyle ? style , bool useActionSheetForCupertino = false , bool useActionSheetForIOS = false , bool useRootNavigator = true , VerticalDirection actionsOverflowDirection = VerticalDirection.up , bool fullyCapitalizedForMaterial = true , bool canPop = true , PopInvokedCallback ? onPopInvoked , AdaptiveDialogBuilder ? builder , Widget ? macOSApplicationIcon , RouteSettings ? routeSettings } )
→ Future <T? >
Show alert dialog, whose appearance is adaptive according to platform
showConfirmationDialog <T > ({required BuildContext context , required String title , String ? message , String ? okLabel , String ? cancelLabel , double ? contentMaxHeight , List <AlertDialogAction <T > > actions = const [] , T? initialSelectedActionKey , bool barrierDismissible = true , AdaptiveStyle ? style , bool useRootNavigator = true , bool shrinkWrap = true , bool fullyCapitalizedForMaterial = true , bool canPop = true , PopInvokedCallback ? onPopInvoked , AdaptiveDialogBuilder ? builder , RouteSettings ? routeSettings , bool toggleable = true } )
→ Future <T? >
Show confirmation dialog ,
whose appearance is adaptive according to platform
showModalActionSheet <T > ({required BuildContext context , String ? title , String ? message , List <SheetAction <T > > actions = const [] , String ? cancelLabel , AdaptiveStyle ? style , bool isDismissible = true , bool useRootNavigator = true , MaterialModalActionSheetConfiguration ? materialConfiguration , bool canPop = true , PopInvokedCallback ? onPopInvoked , AdaptiveDialogBuilder ? builder , RouteSettings ? routeSettings } )
→ Future <T? >
Show modal action sheet, whose appearance is adaptive according to platform
The isDismissible
parameter only works for material style and it specifies
whether the bottom sheet will be dismissed when user taps on the scrim.
showOkAlertDialog ({required BuildContext context , String ? title , String ? message , String ? okLabel , bool barrierDismissible = true , AdaptiveStyle ? alertStyle , AdaptiveStyle ? style , bool useActionSheetForCupertino = false , bool useActionSheetForIOS = false , bool useRootNavigator = true , VerticalDirection actionsOverflowDirection = VerticalDirection.up , bool fullyCapitalizedForMaterial = true , bool canPop = true , PopInvokedCallback ? onPopInvoked , AdaptiveDialogBuilder ? builder , RouteSettings ? routeSettings } )
→ Future <OkCancelResult >
Show OK alert dialog, whose appearance is adaptive according to platform
showOkCancelAlertDialog ({required BuildContext context , String ? title , String ? message , String ? okLabel , String ? cancelLabel , OkCancelAlertDefaultType ? defaultType , bool isDestructiveAction = false , bool barrierDismissible = true , AdaptiveStyle ? alertStyle , AdaptiveStyle ? style , bool useActionSheetForCupertino = false , bool useActionSheetForIOS = false , bool useRootNavigator = true , VerticalDirection actionsOverflowDirection = VerticalDirection.up , bool fullyCapitalizedForMaterial = true , bool canPop = true , PopInvokedCallback ? onPopInvoked , AdaptiveDialogBuilder ? builder , RouteSettings ? routeSettings } )
→ Future <OkCancelResult >
Show OK/Cancel alert dialog, whose appearance is adaptive according to platform
showTextAnswerDialog ({required BuildContext context , required String keyword , String ? title , String ? message , String ? okLabel , String ? cancelLabel , bool isDestructiveAction = false , bool barrierDismissible = true , String ? hintText , String ? retryTitle , String ? retryMessage , String ? retryOkLabel , String ? retryCancelLabel , AdaptiveStyle ? style , bool useRootNavigator = true , VerticalDirection actionsOverflowDirection = VerticalDirection.up , bool fullyCapitalizedForMaterial = true , bool canPop = true , PopInvokedCallback ? onPopInvoked , bool autoSubmit = false , bool isCaseSensitive = true , AdaptiveDialogBuilder ? builder } )
→ Future <bool >
showTextInputDialog ({required BuildContext context , required List <DialogTextField > textFields , String ? title , String ? message , String ? okLabel , String ? cancelLabel , bool isDestructiveAction = false , bool barrierDismissible = true , AdaptiveStyle ? style , bool useRootNavigator = true , VerticalDirection actionsOverflowDirection = VerticalDirection.up , bool fullyCapitalizedForMaterial = true , bool canPop = true , PopInvokedCallback ? onPopInvoked , bool autoSubmit = false , AdaptiveDialogBuilder ? builder , RouteSettings ? routeSettings } )
→ Future <List <String > ? >