-
-
Save sbis04/22969957a5ba8bacbe847b514b8624c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Maps', | |
theme: ThemeData( | |
primarySwatch: Colors.blue, | |
), | |
home: MapView(), | |
); | |
} | |
} | |
class MapView extends StatefulWidget { | |
@override | |
_MapViewState createState() => _MapViewState(); | |
} | |
class _MapViewState extends State<MapView> { | |
@override | |
Widget build(BuildContext context) { | |
// Determining the screen width & height | |
var height = MediaQuery.of(context).size.height; | |
var width = MediaQuery.of(context).size.width; | |
return Container( | |
height: height, | |
width: width, | |
child: Scaffold( | |
body: Stack( | |
children: <Widget>[ | |
// TODO: Add Map View | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment