Incorrect initial scaling
Opened this issue · 0 comments
SergeShkurko commented
Magnification is automatically set, although it is not necessary
Code:
Navigator.of(context).push(
MaterialPageRoute(
builder: (_) => Scaffold(
appBar: AppBar(),
body: Crop.file(
image,
scale: 1,
key: _cropKey,
aspectRatio: 21 / 9,
),
),
),
);
Loaded image also contains aspect ratio 21 / 9
When page opens _cropKey.currentState.scale
sets to 0.4, Although it could be 1.0