[rfw] Update docs and coverage (#480)
diff --git a/packages/rfw/CHANGELOG.md b/packages/rfw/CHANGELOG.md
index cd30597..b2a302e 100644
--- a/packages/rfw/CHANGELOG.md
+++ b/packages/rfw/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.0.2
+
+* Mention FractionallySizedBox in documentation.
+
## 1.0.1
* Improve documentation.
@@ -8,4 +12,4 @@
## 1.0.0
-* Initial release.
\ No newline at end of file
+* Initial release.
diff --git a/packages/rfw/lib/src/flutter/core_widgets.dart b/packages/rfw/lib/src/flutter/core_widgets.dart
index 3f888c3..26c4cbe 100644
--- a/packages/rfw/lib/src/flutter/core_widgets.dart
+++ b/packages/rfw/lib/src/flutter/core_widgets.dart
@@ -33,6 +33,7 @@
/// * [Directionality]
/// * [Expanded]
/// * [FittedBox]
+/// * [FractionallySizedBox]
/// * [GestureDetector]
/// * [GridView] (actually uses [GridView.builder])
/// * [Icon]
@@ -229,7 +230,8 @@
// In these widgets we make an effort to expose every single argument available.
Map<String, LocalWidgetBuilder> get _coreWidgetsDefinitions => <String, LocalWidgetBuilder>{
- // Keep these in alphabetical order.
+ // Keep these in alphabetical order and add any new widgets to the list
+ // in the documentation above.
'AnimationDefaults': (BuildContext context, DataSource source) {
return AnimationDefaults(
diff --git a/packages/rfw/pubspec.yaml b/packages/rfw/pubspec.yaml
index 373f89f..dbe4d54 100644
--- a/packages/rfw/pubspec.yaml
+++ b/packages/rfw/pubspec.yaml
@@ -2,7 +2,7 @@
description: "Remote Flutter widgets: a library for rendering declarative widget description files at runtime."
repository: https://github.com/flutter/packages/tree/master/packages/rfw
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+rfw%22
-version: 1.0.1
+version: 1.0.2
environment:
sdk: ">=2.13.0 <3.0.0"
diff --git a/packages/rfw/run_tests.sh b/packages/rfw/run_tests.sh
index 4b205c5..81ec591 100755
--- a/packages/rfw/run_tests.sh
+++ b/packages/rfw/run_tests.sh
@@ -5,8 +5,11 @@
# Please update these targets when you update this package.
# Please ensure that test coverage continues to be 100%.
+#
+# When updating TARGET_LINES, check what the current percentage
+# coverage is and update TARGET_PERCENT also.
-TARGET_LINES=2121
+TARGET_LINES=2127
TARGET_PERCENT=100
LAST_UPDATE="2021-08-30"
@@ -49,5 +52,7 @@
echo
echo "When in doubt, ask @Hixie for advice. Thanks!"
exit 1
+elif [ $ACTUAL -gt $TARGET_LINES ]; then
+ echo "Coverage has increased; you can update TARGET_LINES to:" $ACTUAL
fi
rm -rf coverage