galli360viewer 0.0.5
galli360viewer: ^0.0.5 copied to clipboard
Galli360 is a Flutter package that lets users view and interact with 360 street images from GalliMaps. Users can pan, tilt, and zoom in on images and pin and share locations. Developers can easily add [...]
Galli360 Viewer #
Galli Maps' flutter library to show 360 images of streets of Nepal
- wide, imersive view
- pan, tilt and zoom in different parts of images
- single tap to pin a building/location
- save the pinned location and share it with others
Setup #
Add galli360viewer as a dependency in your pubspec.yaml file
dependencies:
galli360viewer: ${last_version}
How to use #
Import and add the Galli360Viewer widget to your project
import 'package:galli360viewer/galli360viewer.dart';
... ...
final Galli360 controller = Galli360(token);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Viewer(
coordinate: LatLng(37.421997, -122.084057),
pinX: 0.5,
pinY: 0.5,
height: 400,
width: 400,
loadingWidget: Container(
child: Center(
child: const CircularProgressIndicator(),
),
),
closeWidget: Container(
child: Center(
child: Text('Close'),
),
),
showClose: true,
animation: true,
maxZoom: 2,
minZoom: 0.5,
animSpeed: 5,
sensitivity: 5,
pinIcon: Icons.location_on,
onSaved: (double x, double y) {
print(x);
print(y);
},
controller: controller,
),
);
}
Preview #
