extension_flutter_tools 1.7.0
extension_flutter_tools: ^1.7.0 copied to clipboard
Extensions and functions useful for a flutter app.
1.7.0 #
Possible Breaking Change :
- DateTimeButton : initialDateTime is now converted to local timezone before being displayed. This should have always been the behaviour but if you were using it in a different timezone and had worked around this limitation, you may need to adjust your code now that it is working as expected.
1.6.3 #
- ErrorView : makes the details text selectable. This is useful when the details text is a long text that the user may want to copy.
1.6.2 #
- Updated intl dependency to 0.20.2 to match latest flutter version
1.6.1 #
- Updated intl dependency to 0.20.0
- Updated cached_network_image dependency to 3.4.1
- Updated inner workings of
toHexfunction to use the new color management of Flutter 3.27 (https://docs.flutter.dev/release/breaking-changes/wide-gamut-framework)
1.6.0 #
- New Widget :
CopyToClipboardButton: a button that will copy a text to the clipboard when pressed. The text to copy is passed as a parameter to the widget. - The
DateTimeButtonnow exposes a newLocaleparameter that will be passed to the date selector widget. This can be used to translate the UI of the date selector widget.
1.5.0 #
- The
ConfirmWrapperwidget now displays the confirmation button using the theme's error color (usually red). This makes it easier for users to identify the button that will perform the destructive action.
1.4.2 #
- DateTimeButton : Fixes a bug where the button was not working if we passed a minimum date in the future and no initial date.
1.4.1 #
- TestTools : added a
scrollUntilVisiblefunction to scroll a Scrollable view until a specific widget is visible. This function is useful to test widgets that are not visible on the screen by default.
1.4.0 #
- DateTimeButton : allows a clear button to be displayed next to the date button. The clear button will clear the selected date and call the
onDateTimeClearedcallback. This button will only appear if theonDateTimeClearedcallback is provided and a date is selected. - Updated linting rules to be more strict : this may lead to new warnings if you forgot some const calls. Just add
constwhere needed to remove the warnings and make your code more efficient.
1.3.0 #
- DateTimeButton : allows passing a custom DateFormat object that will be used to display the selected date on the button.
1.2.0 #
- DateTimeButton : allows passing a null value to the onNewDateTimeSelected callback. When null is passed, the button will be disabled.
1.1.2 #
Dependencies :
- Allows intl 0.19.0
1.1.1 #
TestTools :
- Added a pump call to the runTestableWidgetScreen function. This allows the launched screen to trigger an async call after being launched.
1.1.0 #
- Added an
ErrorViewcomponent to display error messages. - Added
TestToolsclass with some static functions useful for unit tests for Flutter apps.
1.0.0 #
- Initial public version.