more_widgets 4.1.0 copy "more_widgets: ^4.1.0" to clipboard
more_widgets: ^4.1.0 copied to clipboard

This package will offer you new useful widgets to use in your apps.

4.1.0 [24 december 2025] #

  • Dialogs migrated to Flutter’s native adaptive API:
    • All dialogs now use showAdaptiveDialog and AlertDialog.adaptive.
    • Actions remain platform-native:
      • CupertinoDialogAction on iOS/macOS
      • TextButton on Material platforms
  • Added Dialogs.checkBoxDialog:
    • Title + message + checkbox (e.g. “Don’t ask me again” / “Remember my choice”)
    • One-button or two-button variant (hasSecondaryButton)
    • Supports DestructiveAction, DefaultAction, maxWidth, popByDefault
    • Callbacks receive the checkbox value via ValueChanged<bool>
  • Internal cleanup:
    • Removed duplicated Material/Cupertino dialog widget implementations in favor of a single adaptive implementation per dialog type.
    • Improved checkbox row spacing/alignment in Cupertino dialogs.

4.0.1 [03 november 2025] #

  • Adding possibility to add maxWidth to material dialogs.

4.0.0 [29 october 2025] #

Breaking changes / Migration guide

This release modernises the package API and improves cross-platform compatibility and theming. Because of tightened types for callback parameters and small behavioural changes, this is a major release.

What changed

  • Typed callbacks: many places previously accepting an untyped Function? now accept specific types such as VoidCallback? and ValueChanged<String>?.
    • This makes the API safer and easier to use with static analysis but may require small updates in client code.
  • Removed direct use of dart:io in widgets to improve web compatibility. Platform checks now rely on Flutter platform abstractions.
  • Improved theming: hard-coded colors were replaced with theme-aware values (ColorScheme) where applicable.
  • UI improvements and small refactors across dialogs, buttons and background widgets.
  • Code formatting, documentation (dartdoc) and lint fixes to follow Flutter package best-practices for Flutter 3.35.7.

Migration notes (common changes you may need to apply)

  • Dialog callbacks

    • Before (example):
      Dialogs.infoDialog(
        context: context,
        title: 'Info',
        message: 'Message',
        onPressed: () { /* ... */ }, // previously typed as Function?
      );
      
    • After: onPressed is VoidCallback? (same closure still compiles), but if you passed a function with a different signature you must adapt it.
  • Text input callbacks

    • onChanged parameters are now ValueChanged<String>? (use (String value) { ... }).
    • onEditingComplete is VoidCallback?.
  • BottomActionSheet

    • BottomActionSheetAction already uses VoidCallback for onPressed — no change required in normal usage.
  • GradientBackground

    • Removed the useDarkMode parameter (the widget now chooses colors using the current theme's brightness).

Examples

  • Dialog with typed callbacks:
Dialogs.dialogWithOptions(
  context: context,
  title: 'Confirm',
  message: 'Are you sure?',
  onPressedLeftButton: () => doLeft(), // VoidCallback
  onPressedRightButton: () => doRight(), // VoidCallback
);
  • Text input dialog with typed onChanged:
Dialogs.textInputDialog(
  context: context,
  title: 'Name',
  message: 'Enter your name',
  onChanged: (value) => debugPrint('value = $value'), // ValueChanged<String>
);

Other notes

  • This version targets Flutter 3.35.7 and follows updated lint rules; please run flutter analyze in your project to see any warnings or suggestions.
  • If you encounter issues migrating, check the examples folder and the updated README for concrete snippets.

3.4.0 [29 october 2025] #

  • Fixing issues

3.2.2 [20 august 2024] #

  • Fixing issues

3.2.1 [11 august 2024] #

  • Fixing issues
  • adding popByDefault to bottomActionSheet

3.2.0 [11 august 2024] #

  • Adding a new widget : BottomActionSheet

3.1.7 [30 july 2024] #

  • Dart 3 is now mendatory
  • Minimum flutter version is now 3.22.0

3.1.6 [13 june 2023] #

  • Adding barrierDismissible to dialogs
  • Dart 3 ready

3.1.5 [17 april 2023] #

  • Turning dialogs into futures

3.1.4 [10 mars 2023] #

  • Fixing readme issues

3.1.3 [10 mars 2023] #

  • Fixing readme issues

3.1.2 [10 mars 2023] #

  • Improving Readme with pictures

3.1.1 [10 mars 2023] #

  • Improving structure
  • Dialogs refactoring
  • Example app is now runnable

3.1.0 [08 mars 2022] #

  • Removing all of the auth screen
  • Min dart sdk version is now 2.19.2
  • Min flutter version is now 3.0.0
  • Upgrading dependencies

3.0.6 [18 mars 2021] #

  • Upgrading dependencies

3.0.5 [26 december 2021] #

  • Bug fix

3.0.4 #

  • Adding a loading widget

3.0.3 #

  • Possibility to display number keyboard on textInputDialog

3.0.2 #

  • Formatting code to flutter format

3.0.1 #

New :

  • Added loading dialogs
  • Added textInputDialog
  • Added dialogWithOptions
  • Added example

3.0.0 #

Restarting this package from start. Don't upgrade if you used some wigets that are not in the package anymore. They'll be back in the future.

  • Adding documentations for widgets
  • Start merging package MyEasyDialog in this one.
  • Updating to latest flutter version

Widgets available : #

  • RoundedContainer()
  • GradientBackground()
  • Dialogs.infodialog()

2.0.14 #

  • Bug fix with brightness

2.0.13 #

  • Bug fix with brightness

2.0.12 #

  • Bug fix

2.0.11 #

  • Bug fix

2.0.10 #

  • Changing gradientButton to make it available in dark mode !

2.0.9 #

  • Bug fix

2.0.8 #

  • Bug fix

2.0.7 #

  • Bug fix

2.0.6 #

  • adding animated overlay
    • AnimatedValidateOverlay
    • AnimatedIconOverlay

2.0.5 #

  • possibility to hide underline formfield

2.0.4 #

  • possibility to change icons from text field

2.0.3 #

  • Added possibility to readOnly text fields

2.0.2 #

  • bug fix

2.0.1 #

  • New Names form field

2.0.0 #

  • First version
5
likes
150
points
199
downloads

Publisher

unverified uploader

Weekly Downloads

This package will offer you new useful widgets to use in your apps.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on more_widgets