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
7fe4a1bf
Unverified
Commit
7fe4a1bf
authored
Mar 19, 2021
by
Darren Austin
Committed by
GitHub
Mar 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed DayPicker dependence on accentColor. (#78576)
parent
2e06ed07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
date_picker_deprecated.dart
...ages/flutter/lib/src/material/date_picker_deprecated.dart
+3
-3
No files found.
packages/flutter/lib/src/material/date_picker_deprecated.dart
View file @
7fe4a1bf
...
...
@@ -263,16 +263,16 @@ class DayPicker extends StatelessWidget {
final
bool
isSelectedDay
=
selectedDate
.
year
==
year
&&
selectedDate
.
month
==
month
&&
selectedDate
.
day
==
day
;
if
(
isSelectedDay
)
{
// The selected day gets a circle background highlight, and a contrasting text color.
itemStyle
=
themeData
.
accentT
extTheme
.
bodyText1
;
itemStyle
=
themeData
.
t
extTheme
.
bodyText1
;
decoration
=
BoxDecoration
(
color:
themeData
.
accentColor
,
color:
themeData
.
colorScheme
.
secondary
,
shape:
BoxShape
.
circle
,
);
}
else
if
(
disabled
)
{
itemStyle
=
themeData
.
textTheme
.
bodyText2
!.
copyWith
(
color:
themeData
.
disabledColor
);
}
else
if
(
currentDate
.
year
==
year
&&
currentDate
.
month
==
month
&&
currentDate
.
day
==
day
)
{
// The current day gets a different text color.
itemStyle
=
themeData
.
textTheme
.
bodyText1
!.
copyWith
(
color:
themeData
.
accentColor
);
itemStyle
=
themeData
.
textTheme
.
bodyText1
!.
copyWith
(
color:
themeData
.
colorScheme
.
secondary
);
}
Widget
dayWidget
=
Container
(
...
...
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