Unverified Commit ca6a06e2 authored by creativecreatorormaybenot's avatar creativecreatorormaybenot Committed by GitHub

Fix RadioThemeData documentation issues (#89064)

parent 2604ea71
...@@ -30,6 +30,8 @@ import 'theme_data.dart'; ...@@ -30,6 +30,8 @@ import 'theme_data.dart';
/// ///
/// * [ThemeData], which describes the overall theme information for the /// * [ThemeData], which describes the overall theme information for the
/// application. /// application.
/// * [RadioTheme], which is used by descendants to obtain the
/// [RadioThemeData].
@immutable @immutable
class RadioThemeData with Diagnosticable { class RadioThemeData with Diagnosticable {
/// Creates a theme that can be used for [ThemeData.radioTheme]. /// Creates a theme that can be used for [ThemeData.radioTheme].
...@@ -44,33 +46,43 @@ class RadioThemeData with Diagnosticable { ...@@ -44,33 +46,43 @@ class RadioThemeData with Diagnosticable {
/// {@macro flutter.material.radio.mouseCursor} /// {@macro flutter.material.radio.mouseCursor}
/// ///
/// If specified, overrides the default value of [Radio.mouseCursor]. /// If specified, overrides the default value of [Radio.mouseCursor]. The
/// default value is [MaterialStateMouseCursor.clickable].
final MaterialStateProperty<MouseCursor?>? mouseCursor; final MaterialStateProperty<MouseCursor?>? mouseCursor;
/// {@macro flutter.material.radio.fillColor} /// {@macro flutter.material.radio.fillColor}
/// ///
/// If specified, overrides the default value of [Radio.fillColor]. /// If specified, overrides the default value of [Radio.fillColor]. The
/// default value is the value of [ThemeData.disabledColor] in the disabled
/// state, [ThemeData.toggleableActiveColor] in the selected state, and
/// [ThemeData.unselectedWidgetColor] in the default state.
final MaterialStateProperty<Color?>? fillColor; final MaterialStateProperty<Color?>? fillColor;
/// {@macro flutter.material.radio.overlayColor} /// {@macro flutter.material.radio.overlayColor}
/// ///
/// If specified, overrides the default value of [Radio.overlayColor]. /// If specified, overrides the default value of [Radio.overlayColor]. The
/// default value is [ThemeData.toggleableActiveColor] with alpha
/// [kRadialReactionAlpha], [ThemeData.focusColor] and [ThemeData.hoverColor]
/// in the pressed, focused, and hovered state.
final MaterialStateProperty<Color?>? overlayColor; final MaterialStateProperty<Color?>? overlayColor;
/// {@macro flutter.material.radio.splashRadius} /// {@macro flutter.material.radio.splashRadius}
/// ///
/// If specified, overrides the default value of [Radio.splashRadius]. /// If specified, overrides the default value of [Radio.splashRadius]. The
/// default value is [kRadialReactionRadius].
final double? splashRadius; final double? splashRadius;
/// {@macro flutter.material.radio.materialTapTargetSize} /// {@macro flutter.material.radio.materialTapTargetSize}
/// ///
/// If specified, overrides the default value of /// If specified, overrides the default value of
/// [Radio.materialTapTargetSize]. /// [Radio.materialTapTargetSize]. The default value is the value of
/// [ThemeData.materialTapTargetSize].
final MaterialTapTargetSize? materialTapTargetSize; final MaterialTapTargetSize? materialTapTargetSize;
/// {@macro flutter.material.radio.visualDensity} /// {@macro flutter.material.radio.visualDensity}
/// ///
/// If specified, overrides the default value of [Radio.visualDensity]. /// If specified, overrides the default value of [Radio.visualDensity]. The
/// default value is the value of [ThemeData.visualDensity].
final VisualDensity? visualDensity; final VisualDensity? visualDensity;
/// Creates a copy of this object but with the given fields replaced with the /// Creates a copy of this object but with the given fields replaced with the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment