From ba7ed768b2705db75510993ced7e28d4bc82dee3 Mon Sep 17 00:00:00 2001 From: Matteo Pietro Dazzi Date: Tue, 24 Mar 2020 20:54:24 +0100 Subject: [PATCH] Prepare for release 0.13.0 --- CHANGELOG.md | 7 ++++++- README.md | 7 ++++--- pubspec.yaml | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d29e106..3c0b992 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -132,4 +132,9 @@ Plural translator improvements ## [0.12.0] -New loader provided: ```NamespaceFileTranslationLoader``` \ No newline at end of file +New loader provided: ```NamespaceFileTranslationLoader``` + +## [0.13.0] + +In the I18nText and I18nPlural widgets, the child parameter is now optional. +The default value of the child parameter is now ```Text("")``` \ No newline at end of file diff --git a/README.md b/README.md index f837360..271525d 100644 --- a/README.md +++ b/README.md @@ -191,9 +191,10 @@ FlutterI18n.plural(buildContext, "your.key", pluralValue); Text widget shorthand: ```dart -I18nText("your.key", Text("")) -I18nText("your.key", Text(""), translationParams: {"user": "Flutter lover"}) -I18nPlural("clicked.times", 2, Text("")) +I18nText("your.key", child: Text("")) +I18nText("your.key", translationParams: {"user": "Flutter lover"}) +I18nPlural("clicked.times", 1) +I18nPlural("clicked.times", 2, child: Text("")) ``` For more informations and details, read the [CHANGELOG.md](CHANGELOG.md). diff --git a/pubspec.yaml b/pubspec.yaml index 5b312a4..d5c2522 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_i18n description: i18n made easy for Flutter. With flutter_i18n you can make your app international, using just a simple .json file! -version: 0.12.0 +version: 0.13.0 homepage: https://github.com/ilteoood/flutter_i18n dependencies: