Unverified Commit e2a638e6 authored by Juyeong Lee's avatar Juyeong Lee Committed by GitHub

Fix docs for TabBar indicator (#60482)

parent a5fa0839
...@@ -595,8 +595,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -595,8 +595,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget {
/// ///
/// The [indicatorPadding] parameter defaults to [EdgeInsets.zero], and must not be null. /// The [indicatorPadding] parameter defaults to [EdgeInsets.zero], and must not be null.
/// ///
/// If [indicator] is not null, then [indicatorWeight], [indicatorPadding], and /// If [indicator] is not null or provided from [TabBarTheme],
/// [indicatorColor] are ignored. /// then [indicatorWeight], [indicatorPadding], and [indicatorColor] are ignored.
const TabBar({ const TabBar({
Key key, Key key,
@required this.tabs, @required this.tabs,
...@@ -647,7 +647,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -647,7 +647,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget {
/// If this parameter is null, then the value of the Theme's indicatorColor /// If this parameter is null, then the value of the Theme's indicatorColor
/// property is used. /// property is used.
/// ///
/// If [indicator] is specified, this property is ignored. /// If [indicator] is specified or provided from [TabBarTheme],
/// this property is ignored.
final Color indicatorColor; final Color indicatorColor;
/// The thickness of the line that appears below the selected tab. /// The thickness of the line that appears below the selected tab.
...@@ -655,7 +656,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -655,7 +656,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget {
/// The value of this parameter must be greater than zero and its default /// The value of this parameter must be greater than zero and its default
/// value is 2.0. /// value is 2.0.
/// ///
/// If [indicator] is specified, this property is ignored. /// If [indicator] is specified or provided from [TabBarTheme],
/// this property is ignored.
final double indicatorWeight; final double indicatorWeight;
/// The horizontal padding for the line that appears below the selected tab. /// The horizontal padding for the line that appears below the selected tab.
...@@ -669,13 +671,15 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -669,13 +671,15 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget {
/// ///
/// The default value of [indicatorPadding] is [EdgeInsets.zero]. /// The default value of [indicatorPadding] is [EdgeInsets.zero].
/// ///
/// If [indicator] is specified, this property is ignored. /// If [indicator] is specified or provided from [TabBarTheme],
/// this property is ignored.
final EdgeInsetsGeometry indicatorPadding; final EdgeInsetsGeometry indicatorPadding;
/// Defines the appearance of the selected tab indicator. /// Defines the appearance of the selected tab indicator.
/// ///
/// If [indicator] is specified, the [indicatorColor], [indicatorWeight], /// If [indicator] is specified or provided from [TabBarTheme],
/// and [indicatorPadding] properties are ignored. /// the [indicatorColor], [indicatorWeight], and [indicatorPadding]
/// properties are ignored.
/// ///
/// The default, underline-style, selected tab indicator can be defined with /// The default, underline-style, selected tab indicator can be defined with
/// [UnderlineTabIndicator]. /// [UnderlineTabIndicator].
......
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