Skip to content

Commit d63f045

Browse files
authored
Support maintainAspect and backgroundColor in copyResize()
1 parent c4a8783 commit d63f045

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/src/command/command.dart

+7-1
Original file line numberDiff line numberDiff line change
@@ -1119,9 +1119,15 @@ class Command {
11191119
void copyResize(
11201120
{int? width,
11211121
int? height,
1122+
bool? maintainAspect,
1123+
Color? backgroundColor,
11221124
Interpolation interpolation = Interpolation.nearest}) {
11231125
subCommand = CopyResizeCmd(subCommand,
1124-
width: width, height: height, interpolation: interpolation);
1126+
width: width,
1127+
height: height,
1128+
maintainAspect: maintainAspect,
1129+
backgroundColor: backgroundColor,
1130+
interpolation: interpolation);
11251131
}
11261132

11271133
void copyResizeCropSquare(

0 commit comments

Comments
 (0)