dgis_mobile_sdk_map 12.0.0-alpha.8 dgis_mobile_sdk_map: ^12.0.0-alpha.8 copied to clipboard
Map version of DGisMobileSDK for Flutter
import 'package:flutter/material.dart';
import 'pages/all_map_controls.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter SDK Android test app',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(title: 'Flutter SDK Android test app Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({required this.title, super.key});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: ListView(
children: <Widget>[
ListTile(
title: const Text('All Map Controls Example'),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const AllMapControlsPage(
title: 'All Map Controls Example',
),
),
);
},
),
],
),
);
}
}