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
2820d21c
Unverified
Commit
2820d21c
authored
Mar 13, 2021
by
Darren Austin
Committed by
GitHub
Mar 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed TabPageSelector accentColor dependency. (#77997)
parent
f0fca7de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tabs.dart
packages/flutter/lib/src/material/tabs.dart
+2
-2
page_selector_test.dart
packages/flutter/test/material/page_selector_test.dart
+1
-1
No files found.
packages/flutter/lib/src/material/tabs.dart
View file @
2820d21c
...
...
@@ -1577,7 +1577,7 @@ class TabPageSelector extends StatelessWidget {
/// for all indicator circles.
///
/// If this parameter is null, then the indicator is filled with the theme's
///
accent color, [ThemeData.accentColor
].
///
[ColorScheme.secondary
].
final
Color
?
selectedColor
;
Widget
_buildTabIndicator
(
...
...
@@ -1620,7 +1620,7 @@ class TabPageSelector extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
final
Color
fixColor
=
color
??
Colors
.
transparent
;
final
Color
fixSelectedColor
=
selectedColor
??
Theme
.
of
(
context
).
accentColor
;
final
Color
fixSelectedColor
=
selectedColor
??
Theme
.
of
(
context
).
colorScheme
.
secondary
;
final
ColorTween
selectedColorTween
=
ColorTween
(
begin:
fixColor
,
end:
fixSelectedColor
);
final
ColorTween
previousColorTween
=
ColorTween
(
begin:
fixSelectedColor
,
end:
fixColor
);
final
TabController
?
tabController
=
controller
??
DefaultTabController
.
of
(
context
);
...
...
packages/flutter/test/material/page_selector_test.dart
View file @
2820d21c
...
...
@@ -12,7 +12,7 @@ Widget buildFrame(TabController tabController, { Color? color, Color? selectedCo
return
Directionality
(
textDirection:
TextDirection
.
ltr
,
child:
Theme
(
data:
ThemeData
(
accentColor:
kSelectedColor
),
data:
ThemeData
(
colorScheme:
const
ColorScheme
.
light
().
copyWith
(
secondary:
kSelectedColor
)
),
child:
SizedBox
.
expand
(
child:
Center
(
child:
SizedBox
(
...
...
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