7553ce25f8
save login is now somehow broken 🧐
61 lines
1.5 KiB
Dart
61 lines
1.5 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'dart:async';
|
|
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
|
import 'package:local_spend/common/platform/platform_scaffold.dart';
|
|
|
|
class MapPage extends StatefulWidget {
|
|
MapPage({Key key}) : super(key: key);
|
|
|
|
@override
|
|
_MapPageState createState() {
|
|
return _MapPageState();
|
|
}
|
|
}
|
|
|
|
class _MapPageState extends State<MapPage> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return PlatformScaffold(
|
|
appBar: AppBar(
|
|
backgroundColor: Colors.blue[400],
|
|
title: Text(
|
|
"Submit Receipt",
|
|
style: TextStyle(
|
|
fontSize: 20,
|
|
color: Colors.white,
|
|
),
|
|
),
|
|
centerTitle: true,
|
|
iconTheme: IconThemeData(color: Colors.black),
|
|
),
|
|
body: null,
|
|
);
|
|
}
|
|
}
|
|
|
|
class MapSample extends StatefulWidget {
|
|
@override
|
|
State<MapSample> createState() => MapSampleState();
|
|
}
|
|
|
|
class MapSampleState extends State<MapSample> {
|
|
Completer<GoogleMapController> _controller = Completer();
|
|
|
|
static final CameraPosition _kGooglePlex = CameraPosition(
|
|
target: LatLng(37.42796133580664, -122.085749655962),
|
|
zoom: 14.4746,
|
|
);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return new Scaffold(
|
|
// body: GoogleMap(
|
|
// mapType: MapType.hybrid,
|
|
// initialCameraPosition: _kGooglePlex,
|
|
// onMapCreated: (GoogleMapController controller) {
|
|
// _controller.complete(controller);
|
|
// },
|
|
// ),
|
|
);
|
|
}
|
|
}
|