Skip to content

Commit

Permalink
expose theme parameter of SvgPicture (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
mj-hd authored Mar 7, 2022
1 parent 66e3515 commit 44d1e6e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ class SvgGenImage {
String semanticsLabel,
bool excludeFromSemantics = false,
Clip clipBehavior = Clip.hardEdge,
SvgTheme? theme,
}) {
return SvgPicture.asset(
_assetName,
Expand All @@ -453,6 +454,7 @@ class SvgGenImage {
semanticsLabel: semanticsLabel,
excludeFromSemantics: excludeFromSemantics,
clipBehavior: clipBehavior,
theme: theme,
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class SvgIntegration extends Integration {
String? semanticsLabel,
bool excludeFromSemantics = false,
Clip clipBehavior = Clip.hardEdge,
SvgTheme? theme,
}) {
return SvgPicture.asset(
_assetName,
Expand All @@ -58,6 +59,7 @@ class SvgIntegration extends Integration {
semanticsLabel: semanticsLabel,
excludeFromSemantics: excludeFromSemantics,
clipBehavior: clipBehavior,
theme: theme,
);
}
Expand Down
2 changes: 2 additions & 0 deletions packages/core/test_resources/actual_data/assets.gen.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 44d1e6e

Please sign in to comment.