import 'dart:async'; import 'package:flutter/material.dart'; import 'Map.dart'; import 'HomePage.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData( primarySwatch: Colors.blue, ), title: 'Flutter Google Maps Demo', home: HomePage(), debugShowCheckedModeBanner: false, ); } } /* class HomePage extends StatefulWidget { @override State createState() => HomePageState(); } class HomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( floatingActionButton: FloatingActionButton.extended( onPressed: () { Navigator.of(context).push(MaterialPageRoute(builder: (context) => Map())); }, label: const Text('To Karta'), icon: const Icon(Icons.directions_boat), ), ); } }*/