adaptive_dialog
library
Functions
showAlertDialog <T > ({required BuildContext context , String ? title , String ? message , List <AlertDialogAction <T > > actions = const [] , bool barrierDismissible = true , AdaptiveStyle style = AdaptiveStyle.adaptive , bool useActionSheetForCupertino = false , bool useRootNavigator = true , VerticalDirection actionsOverflowDirection = VerticalDirection.up , bool fullyCapitalizedForMaterial = true })
→ 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 = AdaptiveStyle.adaptive , bool useRootNavigator = true , bool shrinkWrap = true , bool fullyCapitalizedForMaterial = 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 = AdaptiveStyle.adaptive , bool isDismissible = true , bool useRootNavigator = true , MaterialModalActionSheetConfiguration ? materialConfiguration })
→ 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.adaptive , bool useActionSheetForCupertino = false , bool useRootNavigator = true , VerticalDirection actionsOverflowDirection = VerticalDirection.up , bool fullyCapitalizedForMaterial = true })
→ 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.adaptive , bool useActionSheetForCupertino = false , bool useRootNavigator = true , VerticalDirection actionsOverflowDirection = VerticalDirection.up , bool fullyCapitalizedForMaterial = true })
→ 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 = AdaptiveStyle.adaptive , bool useRootNavigator = true , VerticalDirection actionsOverflowDirection = VerticalDirection.up , bool fullyCapitalizedForMaterial = true })
→ 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 = AdaptiveStyle.adaptive , bool useRootNavigator = true , VerticalDirection actionsOverflowDirection = VerticalDirection.up , bool fullyCapitalizedForMaterial = true })
→ Future <List <String > ? >