blob: 7c814f31a660daca868405a1e869d51b2857b403 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'page.dart';
const CameraPosition _kInitialPosition =
CameraPosition(target: LatLng(-33.852, 151.211), zoom: 11.0);
class LiteModePage extends GoogleMapExampleAppPage {
LiteModePage() : super(const Icon(Icons.map), 'Lite mode');
@override
Widget build(BuildContext context) {
return const _LiteModeBody();
}
}
class _LiteModeBody extends StatelessWidget {
const _LiteModeBody();
@override
Widget build(BuildContext context) {
return Card(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 30.0),
child: Center(
child: SizedBox(
width: 300.0,
height: 300.0,
child: GoogleMap(
initialCameraPosition: _kInitialPosition,
liteModeEnabled: true,
),
),
),
),
);
}
}