yandex_plugin 0.0.9 copy "yandex_plugin: ^0.0.9" to clipboard
yandex_plugin: ^0.0.9 copied to clipboard

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam mollis eleifend eros, id fermentum elit efficitur et. Donec non venenatis metus. Mauris a urna ac nunc pharetra venenatis id quis metus. Ph [...]

example/lib/main.dart

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

import 'package:yandex_mapkit/yandex_mapkit.dart';
import 'package:yandex_plugin/yandex_plugin.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 _yandexPlugin = YandexPlugin();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              final string = await YandexPlugin.init(yandexMapKey: 'wedwed');
              print(string);
              // showModalBottomSheet(
              //   context: context,
              //   builder: (context) {
              //     return Container(
              //       height: MediaQuery.sizeOf(context).height * 0.5,
              //       width: MediaQuery.sizeOf(context).width,
              //       decoration: const BoxDecoration(color: Colors.red),
              //       child: const YandexMap(),
              //     );
              //   },
              // );
            },
            child: const Text("Show map"),
          ),
        ),
      ),
    );
  }
}
0
likes
135
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam mollis eleifend eros, id fermentum elit efficitur et. Donec non venenatis metus. Mauris a urna ac nunc pharetra venenatis id quis metus. Phasellus mattis, elit at egestas efficitur, sapien sapien placerat lectus, vitae maximus lectus tortor vel magna. Etiam neque odio, tincidunt id leo vitae, tristique pharetra arcu. Interdum et egestas.

Documentation

API reference

License

BSL-1.0 (license)

Dependencies

checked_yaml, flutter, json_annotation, plugin_platform_interface, yandex_mapkit

More

Packages that depend on yandex_plugin