PanoramaWidget constructor
PanoramaWidget({
- Key? key,
- PlatformViewType platformViewType = PlatformViewType.Compat,
- TextDirection? textDirection,
- Set<
Factory< gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},OneSequenceGestureRecognizer> > - PlatformViewHitTestBehavior hitTestBehavior = PlatformViewHitTestBehavior.opaque,
- required void onPanoramaCreated(),
- double? scale,
Implementation
PanoramaWidget({
super.key,
super.platformViewType,
super.textDirection,
super.gestureRecognizers,
super.hitTestBehavior,
required this.onPanoramaCreated,
this.scale,
}) : super(
onViewCreated: (view) {
final panorama = scale == null
? PlacesFactory.instance.createPanoramaPlayer(view)
: PlacesFactory.instance
.createPanoramaPlayerWithScale(view, scaleFactor: scale);
onPanoramaCreated(panorama);
return true;
},
);