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
5f01d07c
Unverified
Commit
5f01d07c
authored
Sep 21, 2022
by
Samuel
Committed by
GitHub
Sep 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added `iconTheme` to `RawChip` in `ChoiceChip` (#110908)
parent
77377b46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
choice_chip.dart
packages/flutter/lib/src/material/choice_chip.dart
+1
-0
choice_chip_test.dart
packages/flutter/test/material/choice_chip_test.dart
+12
-0
No files found.
packages/flutter/lib/src/material/choice_chip.dart
View file @
5f01d07c
...
...
@@ -179,6 +179,7 @@ class ChoiceChip extends StatelessWidget
surfaceTintColor:
surfaceTintColor
,
selectedShadowColor:
selectedShadowColor
,
avatarBorder:
avatarBorder
,
iconTheme:
iconTheme
,
);
}
}
...
...
packages/flutter/test/material/choice_chip_test.dart
View file @
5f01d07c
...
...
@@ -120,4 +120,16 @@ void main() {
await
tester
.
pumpWidget
(
wrapForChip
(
child:
const
ChoiceChip
(
label:
label
,
selected:
false
,
clipBehavior:
Clip
.
antiAlias
)));
checkChipMaterialClipBehavior
(
tester
,
Clip
.
antiAlias
);
});
testWidgets
(
'ChoiceChip passes iconTheme property to RawChip'
,
(
WidgetTester
tester
)
async
{
const
IconThemeData
iconTheme
=
IconThemeData
(
color:
Colors
.
red
);
await
tester
.
pumpWidget
(
wrapForChip
(
child:
const
ChoiceChip
(
label:
Text
(
'Test'
),
selected:
true
,
iconTheme:
iconTheme
,
)));
final
RawChip
rawChip
=
tester
.
widget
(
find
.
byType
(
RawChip
));
expect
(
rawChip
.
iconTheme
,
iconTheme
);
});
}
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