Commit a32810bc authored by Sean D'Souza's avatar Sean D'Souza Committed by Hans Muller

Docs edit for Tab Label Color (#29165)

parent 8915cad4
...@@ -655,8 +655,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -655,8 +655,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget {
/// Unselected tab labels are rendered with the same color rendered at 70% /// Unselected tab labels are rendered with the same color rendered at 70%
/// opacity unless [unselectedLabelColor] is non-null. /// opacity unless [unselectedLabelColor] is non-null.
/// ///
/// If this parameter is null then the color of the theme's body2 text color /// If this parameter is null then the color of the [ThemeData.primaryTextTheme]'s
/// is used. /// body2 text color is used.
final Color labelColor; final Color labelColor;
/// The color of unselected tab labels. /// The color of unselected tab labels.
...@@ -669,8 +669,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -669,8 +669,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget {
/// null then this text style will be used for both selected and unselected /// null then this text style will be used for both selected and unselected
/// label styles. /// label styles.
/// ///
/// If this property is null then the text style of the theme's body2 /// If this property is null then the text style of the [ThemeData.primaryTextTheme]'s
/// definition is used. /// body2 definition is used.
final TextStyle labelStyle; final TextStyle labelStyle;
/// The padding added to each of the tab labels. /// The padding added to each of the tab labels.
...@@ -681,7 +681,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget { ...@@ -681,7 +681,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget {
/// The text style of the unselected tab labels /// The text style of the unselected tab labels
/// ///
/// If this property is null then the [labelStyle] value is used. If [labelStyle] /// If this property is null then the [labelStyle] value is used. If [labelStyle]
/// is null then the text style of the theme's body2 definition is used. /// is null then the text style of the [ThemeData.primaryTextTheme]'s
/// body2 definition is used.
final TextStyle unselectedLabelStyle; final TextStyle unselectedLabelStyle;
/// {@macro flutter.widgets.scrollable.dragStartBehavior} /// {@macro flutter.widgets.scrollable.dragStartBehavior}
......
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