Make _photoViewController late
This commit is contained in:
parent
1dd183c4bd
commit
ea63ea1c55
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,7 @@ class _ZoomableImageState extends State<ZoomableImage> {
|
|||
bool _loadedFinalImage = false;
|
||||
ValueChanged<PhotoViewScaleState>? _scaleStateChangedCallback;
|
||||
bool _isZooming = false;
|
||||
PhotoViewController _photoViewController = PhotoViewController();
|
||||
late PhotoViewController _photoViewController;
|
||||
late final PhotoViewScaleStateController _scaleStateController;
|
||||
|
||||
@override
|
||||
|
@ -68,6 +68,7 @@ class _ZoomableImageState extends State<ZoomableImage> {
|
|||
debugPrint("isZooming = $_isZooming, currentState $value");
|
||||
// _logger.info('is reakky zooming $_isZooming with state $value');
|
||||
};
|
||||
_photoViewController = PhotoViewController();
|
||||
_scaleStateController = PhotoViewScaleStateController();
|
||||
super.initState();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue