Open selvam920 opened 12 months ago
Hey did you find any solution or alternative package?
no
Take a look here and here, or simply replace the following in the ScaledWidgetsFlutterBinding
:
@override
ViewConfiguration createViewConfigurationFor(RenderView renderView) {
final FlutterView view = platformDispatcher.implicitView!;
final devicePixelRatio = view.devicePixelRatio;
final physicalSize = view.physicalSize;
if (physicalSize.isEmpty) {
return super.createViewConfigurationFor(renderView);
} else {
devicePixelRatioScaled = devicePixelRatio * scale;
return ViewConfiguration(
physicalConstraints: BoxConstraints.fromViewConstraints(view.physicalConstraints),
logicalConstraints: BoxConstraints.tight(physicalSize) / devicePixelRatioScaled,
// size: logicalSize /* - is no longer a valid API, use the two lines above ^ */
devicePixelRatio: devicePixelRatioScaled,
);
}
}
The named parameter 'size' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'size'.