mapit 0.0.2 mapit: ^0.0.2 copied to clipboard
MapIt allow you to use map in your app,It will help user to search any place on map and can place marker on map and also can move the user to current location on map.
MapIt MapIt package lets you add map,search on map and add markers to your Flutter app.
Installation Add the latest version of package to your pubspec.yaml (and rundart pub get): dependencies: map_it: ^0.0.2 Import the package and use it in your Flutter App.
import 'package:map_it/map_it.dart';
There are a number of properties that you can modify: selectedLocation address callback
Example
class ShowMapScreen extends StatelessWidget {
const ShowMapScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: const GoogleMapScreen(
address: (val) {
PickLocationData location = val;
setState(() {});
},
),
),
);
}
}
Next Goals Use address callback function to get the address from map screen.