From 180213aeab6713af989367084258426c44a18632 Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Wed, 29 May 2024 11:16:49 -0500 Subject: [PATCH] [rfw] Migrate deprecated doc references (#6744) Part of https://github.com/flutter/flutter/issues/148218 Part of https://github.com/flutter/flutter/issues/148361 Fixes https://github.com/flutter/flutter/issues/148220 --- packages/rfw/CHANGELOG.md | 4 ++++ .../rfw/lib/src/flutter/material_widgets.dart | 22 +++++++++---------- packages/rfw/pubspec.yaml | 2 +- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/packages/rfw/CHANGELOG.md b/packages/rfw/CHANGELOG.md index 3490c85aa98f..002457d65311 100644 --- a/packages/rfw/CHANGELOG.md +++ b/packages/rfw/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.28 + +* Updates documentation to WidgetStateProperty and ButtonBar. + ## 1.0.27 * Adds support for `DecorationImage.filterQuality`. diff --git a/packages/rfw/lib/src/flutter/material_widgets.dart b/packages/rfw/lib/src/flutter/material_widgets.dart index 1ddd71ad7e65..f80bcca2cd56 100644 --- a/packages/rfw/lib/src/flutter/material_widgets.dart +++ b/packages/rfw/lib/src/flutter/material_widgets.dart @@ -22,7 +22,7 @@ import 'runtime.dart'; /// /// * [AboutListTile] /// * [AppBar] -/// * [ButtonBar] +/// * `ButtonBar` /// * [Card] /// * [CircularProgressIndicator] /// * [Divider] @@ -56,11 +56,11 @@ import 'runtime.dart'; /// Some features have changed in the underlying Flutter's material library and are /// therefore no longer supported, including: /// -/// * The [ButtonBar] widget in the Flutter's material library is planned to be -/// deprecated in favor of the [OverflowBar] widget. The [ButtonBar] widget in +/// * The `ButtonBar` widget in the Flutter's material library is planned to be +/// deprecated in favor of the [OverflowBar] widget. The `ButtonBar` widget in /// `rfw` package uses the [OverflowBar] widget internally for backward compatibility. -/// The [ButtonBar] widget in `rfw` package is not deprecated and will continue to -/// be supported. As a result, the following [ButtonBar] parameters are no longer +/// The `ButtonBar` widget in `rfw` package is not deprecated and will continue to +/// be supported. As a result, the following `ButtonBar` parameters are no longer /// supported: /// /// * `buttonMinWidth` @@ -77,7 +77,7 @@ import 'runtime.dart'; /// * Theming in general is not currently supported. /// /// * Properties whose values are [Animation]s or based on -/// [MaterialStateProperty] are not supported. +/// [WidgetStateProperty] are not supported. /// /// * Features related to focus or configuring mouse support are not /// implemented. @@ -94,7 +94,7 @@ import 'runtime.dart'; /// /// In general, the trend will all of these unsupported features is that this /// library doesn't support features that can't be trivially expressed using the -/// JSON-like structures of RFW. For example, [MaterialStateProperty] is +/// JSON-like structures of RFW. For example, [WidgetStateProperty] is /// designed to be used with code to select the values, which doesn't work well /// in the RFW structure. LocalWidgetLibrary createMaterialWidgets() => LocalWidgetLibrary(_materialWidgetsDefinitions); @@ -142,12 +142,12 @@ Map get _materialWidgetsDefinitions =>