Skip to content

Commit 0c6a009

Browse files
committed
fix insufficient params of svg
1 parent 2cf5b26 commit 0c6a009

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

example/lib/gen/assets.gen.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ class SvgGenImage {
136136
return SvgPicture.asset(
137137
_assetName,
138138
matchTextDirection: matchTextDirection,
139+
bundle: bundle,
140+
package: package,
141+
width: width,
142+
height: height,
143+
fit: fit,
144+
alignment: alignment,
145+
allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
146+
placeholderBuilder: placeholderBuilder,
147+
color: color,
148+
colorBlendMode: colorBlendMode,
149+
semanticsLabel: semanticsLabel,
150+
excludeFromSemantics: excludeFromSemantics,
151+
clipBehavior: clipBehavior,
139152
);
140153
}
141154

lib/src/generators/integrations/svg_integration.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ class SvgIntegration extends Integration {
3232
return SvgPicture.asset(
3333
_assetName,
3434
matchTextDirection: matchTextDirection,
35+
bundle: bundle,
36+
package: package,
37+
width: width,
38+
height: height,
39+
fit: fit,
40+
alignment: alignment,
41+
allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
42+
placeholderBuilder: placeholderBuilder,
43+
color: color,
44+
colorBlendMode: colorBlendMode,
45+
semanticsLabel: semanticsLabel,
46+
excludeFromSemantics: excludeFromSemantics,
47+
clipBehavior: clipBehavior,
3548
);
3649
}
3750

test_resources/actual_data/assets.gen.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ class SvgGenImage {
136136
return SvgPicture.asset(
137137
_assetName,
138138
matchTextDirection: matchTextDirection,
139+
bundle: bundle,
140+
package: package,
141+
width: width,
142+
height: height,
143+
fit: fit,
144+
alignment: alignment,
145+
allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
146+
placeholderBuilder: placeholderBuilder,
147+
color: color,
148+
colorBlendMode: colorBlendMode,
149+
semanticsLabel: semanticsLabel,
150+
excludeFromSemantics: excludeFromSemantics,
151+
clipBehavior: clipBehavior,
139152
);
140153
}
141154

0 commit comments

Comments
 (0)