ola_map_flutter 0.0.7 copy "ola_map_flutter: ^0.0.7" to clipboard
ola_map_flutter: ^0.0.7 copied to clipboard

PlatformAndroid

A Flutter plugin for integrating the official Ola Map SDK. This plugin provides access to map functionalities including adding markers, showing and hiding current location, and initializing the map wi [...]

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:ola_map_flutter/ola_map_flutter.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final Completer<OlaMapController> _controller = Completer<OlaMapController>();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
          body: OlaMap(
              showCurrentLocation: false,
              showZoomControls: true,
              showMyLocationButton: true,
              apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
              onPlatformViewCreated: (OlaMapController controller) {
                _controller.complete(controller);
              })),
    );
  }
}
2
likes
120
points
85
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for integrating the official Ola Map SDK. This plugin provides access to map functionalities including adding markers, showing and hiding current location, and initializing the map with your API key. Designed to be used in Flutter applications for seamless integration with Ola Maps.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, geolocator, get, permission_handler, plugin_platform_interface, screenshot, widgets_to_image

More

Packages that depend on ola_map_flutter

Packages that implement ola_map_flutter