adaptive_dialog 2.7.1 copy "adaptive_dialog: ^2.7.1" to clipboard
adaptive_dialog: ^2.7.1 copied to clipboard

Show alert dialog or modal action sheet adaptively according to platform.

2.7.1 - 2026-03-10 #

  • Restore CHANGELOG.md history that was accidentally removed in 2.7.0

2.7.0 - 2026-03-10 #

  • Support text selection for dialogs (#65)
    • Added AdaptiveSelectionMode to control text selection behavior.
    • Text is now selectable by default on Web and Desktop platforms.
    • Supported in all dialog functions.
  • Support keyboard shortcuts (Enter and Escape) for dialogs (#61)
    • Enter: Trigger default action or submit text input
    • Escape: Cancel or close dialog

2.6.0 #

  • fullyCapitalizedForMaterial is deprecated and change default to false
    • According to Material Design Guidelines, button texts should not be fully capitalized.
    • If you want to keep the old behavior, please set fullyCapitalizedForMaterial: true explicitly.

2.5.0 #

  • Changed to Flutter 3.35.0 and Dart 3.9.0 or higher

2.4.2 #

  • Set scrollable: true to MaterialTextInputDialog (#143, #144)

2.4.1 #

  • Trim empty newline when there are no validation message on iOS

2.4.0 #

  • Changed to Flutter 3.27.0 and Dart 3.6.0 or higher

2.3.0 #

  • Use SystemContextMenu for iOS

2.2.1 #

  • Changed to Flutter 3.24.0 and Dart 3.5 or higher
    • This should have been done at version 2.2.0.

2.2.0 #

  • Fix deprecated API use (ButtonBar, PopInvokedCallback)
  • If you are using Flutter version below 3.24, please specify adaptive_dialog: 2.1.0 as this version will cause a compilation error.
    • Corrected the dependency specification in version 2.2.1, but cannot be fixed the already released versions

2.1.0 #

  • Add spellCheckConfiguration to DialogTextField

2.0.0 #

1.10.1 #

  • Fix TextStyle of showConfirmationDialog/showModalActionSheet (#124)

1.10.0 #

  • feat: Add option to set toggleable for showConfirmDialog (#123)

1.9.0+1 #

  • Adds pub topics and screenshots to package metadata.

1.9.0 #

  • Support Flutter 3.10
  • Upgrade macos_ui to 2.0.0

1.9.0-x-macos-beta.1 #

  • Follow changes of macos_ui 2.0.0-beta.7

1.9.0-x-macos-beta.0 #

  • Depends on macos_ui again

1.9.0-no-macos.3 #

  • fix: pop with dialog context (#115)

1.9.0-no-macos.2 #

  • Fix Flutter 3.10 compile error caused by macos_ui package
    • Remove macos_ui dependency temporarily and show same UI as iOS instead
    • Upon stable release, the UI that uses the original macos_ui will be restored

1.8.3 #

  • Fix no title showModalActionSheet for Material style

1.8.2 #

  • Fix the error with pop when BuildContext is disposed

1.8.1+1 #

  • Add documentation about barrierDismissible

1.8.1 #

  • Add @useResult to each functions

1.8.0 #

  • Support textCapitalization in DialogTextField (#91)
  • Fix typo (maxLenghtmaxLength)

1.7.0 #

  • Adde maxLength to fields (#84)
  • Expose route settings on all apis (#88)

1.6.4 #

  • Use accentColor for macOS by using dynamic_color
  • Update min SDK version to 2.17.0

1.6.3 #

  • Use macos_ui v1

1.6.2 #

  • Fix useActionSheetForIOS was mistakenly worked

1.6.1 #

  • Add outer edge to showTextInputDialog for macOS
  • Support dragging text input dialog for macOS

1.6.0 #

  • Support for macOS dialogs
  • Add AdaptiveDialog.instance.updateConfiguration, a method used for changing default configuration

1.5.1 #

  • Add autocorrect to DialogTextField (#63)

1.5.0 #

  • Add builder parameter
    • This resolved #28, #42 and #56

1.4.0 #

  • Change isCupertinoStyle to return true if TargetPlatform is macOS

1.3.0 #

  • Deprecate alertStyle of showOkAlertDialog/showOkCancelAlertDialog, which was mistakenly defined, and add style property instead.
  • Make Material style showOkAlertDialog scrollable (#53)

1.2.0 #

  • Add isCaseSensitive parameter to showTextAnswerDialog (#49)

1.1.0 #

  • Add optional arg to submit form when user hits enter on last input field to showTextAnswerDialog() (#39)

1.0.1 #

  • Remove unused cancelLabel from MaterialModalActionSheet

1.0.0 #

  • Add onWillPop parameter

0.10.0 #

0.9.4 #

0.9.3 #

  • Support initial selection for showConfirmationDialog
  • Set toggleable true for showConfirmationDialog

0.9.2 #

  • Add minLines/maxLines to DialogTextField (#12)

0.9.1 #

  • Add prefixText/suffixText to DialogTextField (#11)

0.9.0 #

  • Add fullyCapitalizedForMaterial to showAlertDialog
    • default: true
    • If it is true, button label is fully capitalized automatically, which is recommended at the Material Design guide.

0.8.0 #

  • Use new buttons

0.7.5 #

  • If there is enough height, NeverScrollableScrollPhysics will be set to showConfirmationDialog's inner ListView

0.7.4 #

  • Add shrinkWrap to showConfirmationDialog and it is defaults to true, which is opposite of the default value of ListView

0.7.3 #

  • Support autovalidate for showTextInputDialog

0.7.2 #

  • Support validation for showTextInputDialog
  • Fix destructive color of showTextInputDialog for Cupertino

0.7.1 #

  • User showModal instead of showDialog for showTextInputDialog

0.7.0 #

  • Delete showDialog2020 function
    • the configuration parameter of animations showModal can be omitted at v1.1.0 so, showDialog2020 no longer the point of existence.

0.6.4 #

  • Override textScaleFactor to keep larger than 1 for CupertinoActionSheet

0.6.3 #

  • Add actionsOverflowDirection to showAlertDialog
    • Only works for Material style

0.6.2 #

  • Fix showTextAnswerDialog retry

0.6.1 #

  • Fix showConfirmationDialog message text alignment

0.6.0 #

  • Add showConfirmationDialog
    • Show confirmation dialog, whose appearance is adaptive according to platform
    • For Cupertino, fallback to ActionSheet

0.5.0 #

  • Add materialConfiguration to showModalBottomSheet
    • This suppresses many actions (long list) sheet from overflow

0.4.0 #

0.3.1 #

  • Add showDialog2020, which wraps showModal with FadeScaleTransitionConfiguration().

0.3.0 #

  • Use showModal with FadeScaleTransitionConfiguration of animations for Material alert dialog

0.2.2 #

  • Fix showTextAnswerDialog

0.2.1 #

  • Add isDestructiveAction to showTextInputDialog and showTextAnswerDialog

0.2.0 #

  • Add showTextInputDialog
  • Add showTextAnswerDialog

0.1.2 #

  • Change SheetAction's icon to nullable

0.1.1 #

  • Add documentation
  • Change some parameters to nullable

0.1.0 #

  • Initial release
1.08k
likes
150
points
27.1k
downloads
screenshot

Documentation

API reference

Publisher

verified publishermono0926.com

Weekly Downloads

Show alert dialog or modal action sheet adaptively according to platform.

Repository (GitHub)
View/report issues

Topics

#dialog #adaptive #alert #popup

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

animations, collection, dynamic_color, flutter, intersperse, macos_ui, meta

More

Packages that depend on adaptive_dialog