yandex_plugin 0.0.9
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"),
),
),
),
);
}
}