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
24bf6b81
Unverified
Commit
24bf6b81
authored
Feb 27, 2021
by
Hans Muller
Committed by
GitHub
Feb 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed CheckboxListTile accentColor dependency (#76877)
parent
ee54a72a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
23 deletions
+22
-23
checkbox_list_tile.dart
packages/flutter/lib/src/material/checkbox_list_tile.dart
+22
-23
No files found.
packages/flutter/lib/src/material/checkbox_list_tile.dart
View file @
24bf6b81
...
...
@@ -26,10 +26,10 @@ import 'theme_data.dart';
/// those of the same name on [ListTile].
///
/// The [selected] property on this widget is similar to the [ListTile.selected]
/// property, but the color used is
that described by [activeColor], if any,
///
defaulting to the accent color of the current [Theme]. No effort is made to
///
coordinate the [selected] state and the [value] state; to have the list til
e
///
appear selected when the
checkbox is checked, pass the same value to both.
/// property, but the color used is
[activeColor], if it's non-null.
///
No effort is made to coordinate the [selected] state and the
///
[value] state; to have the list tile appear selected when th
e
/// checkbox is checked, pass the same value to both.
///
/// The checkbox is shown on the right by default in left-to-right languages
/// (i.e. the trailing edge). This can be changed using [controlAffinity]. The
...
...
@@ -314,7 +314,8 @@ class CheckboxListTile extends StatelessWidget {
/// The color to use when this checkbox is checked.
///
/// Defaults to accent color of the current [Theme].
/// If this property is null, then the checkbox's default is used, which is
/// [ThemeData.toggleableActiveColor].
final
Color
?
activeColor
;
/// The color to use for the check icon when this checkbox is checked.
...
...
@@ -430,25 +431,23 @@ class CheckboxListTile extends StatelessWidget {
trailing
=
control
;
break
;
}
return
MergeSemantics
(
child:
ListTileTheme
.
merge
(
selectedColor:
activeColor
??
Theme
.
of
(
context
).
accentColor
,
child:
ListTile
(
leading:
leading
,
title:
title
,
subtitle:
subtitle
,
trailing:
trailing
,
isThreeLine:
isThreeLine
,
dense:
dense
,
enabled:
onChanged
!=
null
,
onTap:
onChanged
!=
null
?
_handleValueChange
:
null
,
selected:
selected
,
autofocus:
autofocus
,
contentPadding:
contentPadding
,
shape:
shape
,
selectedTileColor:
selectedTileColor
,
tileColor:
tileColor
,
),
child:
ListTile
(
leading:
leading
,
title:
title
,
subtitle:
subtitle
,
trailing:
trailing
,
isThreeLine:
isThreeLine
,
dense:
dense
,
enabled:
onChanged
!=
null
,
onTap:
onChanged
!=
null
?
_handleValueChange
:
null
,
selected:
selected
,
autofocus:
autofocus
,
contentPadding:
contentPadding
,
shape:
shape
,
selectedTileColor:
selectedTileColor
,
tileColor:
tileColor
,
),
);
}
...
...
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