Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e2a638e6
Unverified
Commit
e2a638e6
authored
Jul 09, 2020
by
Juyeong Lee
Committed by
GitHub
Jul 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix docs for TabBar indicator (#60482)
parent
a5fa0839
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
tabs.dart
packages/flutter/lib/src/material/tabs.dart
+11
-7
No files found.
packages/flutter/lib/src/material/tabs.dart
View file @
e2a638e6
...
...
@@ -595,8 +595,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget {
///
/// The [indicatorPadding] parameter defaults to [EdgeInsets.zero], and must not be null.
///
/// If [indicator] is not null
, then [indicatorWeight], [indicatorPadding], and
/// [indicatorColor] are ignored.
/// If [indicator] is not null
or provided from [TabBarTheme],
///
then [indicatorWeight], [indicatorPadding], and
[indicatorColor] are ignored.
const
TabBar
({
Key
key
,
@required
this
.
tabs
,
...
...
@@ -647,7 +647,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget {
/// If this parameter is null, then the value of the Theme's indicatorColor
/// 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
;
/// The thickness of the line that appears below the selected tab.
...
...
@@ -655,7 +656,8 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget {
/// The value of this parameter must be greater than zero and its default
/// 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
;
/// The horizontal padding for the line that appears below the selected tab.
...
...
@@ -669,13 +671,15 @@ class TabBar extends StatefulWidget implements PreferredSizeWidget {
///
/// 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
;
/// Defines the appearance of the selected tab indicator.
///
/// If [indicator] is specified, the [indicatorColor], [indicatorWeight],
/// and [indicatorPadding] properties are ignored.
/// If [indicator] is specified or provided from [TabBarTheme],
/// the [indicatorColor], [indicatorWeight], and [indicatorPadding]
/// properties are ignored.
///
/// The default, underline-style, selected tab indicator can be defined with
/// [UnderlineTabIndicator].
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment