- 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
DateTimeButton
now exposes a newLocale
parameter that will be passed to the date selector widget. This can be used to translate the UI of the date selector widget.
- The
ConfirmWrapper
widget 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.
- DateTimeButton : Fixes a bug where the button was not working if we passed a minimum date in the future and no initial date.
- TestTools : added a
scrollUntilVisible
function 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.
- DateTimeButton : allows a clear button to be displayed next to the date button. The clear button will clear the selected date and call the
onDateTimeCleared
callback. This button will only appear if theonDateTimeCleared
callback 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
const
where needed to remove the warnings and make your code more efficient.
- DateTimeButton : allows passing a custom DateFormat object that will be used to display the selected date on the button.
- DateTimeButton : allows passing a null value to the onNewDateTimeSelected callback. When null is passed, the button will be disabled.
Dependencies :
- Allows intl 0.19.0
TestTools :
- Added a pump call to the runTestableWidgetScreen function. This allows the launched screen to trigger an async call after being launched.
- Added an
ErrorView
component to display error messages. - Added
TestTools
class with some static functions useful for unit tests for Flutter apps.
- Initial public version.