Skip to content

Commit 989816b

Browse files
committed
ios_shared_code
1 parent 880d4b7 commit 989816b

19 files changed

Lines changed: 34 additions & 50 deletions

packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_marker_icons.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ import 'place_marker.dart';
1212
/// Page that demonstrates how to use custom [AdvanceMarker] icons.
1313
class AdvancedMarkerIconsPage extends GoogleMapExampleAppPage {
1414
/// Default constructor.
15-
const AdvancedMarkerIconsPage({Key? key, required this.mapId})
16-
: super(
17-
key: key,
18-
const Icon(Icons.image_outlined),
19-
'Advanced marker icons',
20-
);
15+
const AdvancedMarkerIconsPage({super.key, required this.mapId})
16+
: super(const Icon(Icons.image_outlined), 'Advanced marker icons');
2117

2218
/// Map ID to use for the GoogleMap.
2319
final String? mapId;

packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/advanced_markers_clustering.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ import 'page.dart';
1515
/// Same as [ClusteringPage] but works with [AdvancedMarker].
1616
class AdvancedMarkersClusteringPage extends GoogleMapExampleAppPage {
1717
/// Default constructor.
18-
const AdvancedMarkersClusteringPage({Key? key, required this.mapId})
18+
const AdvancedMarkersClusteringPage({super.key, required this.mapId})
1919
: super(
20-
key: key,
2120
const Icon(Icons.place_outlined),
2221
'Manage clusters of advanced markers',
2322
);

packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/animate_camera.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import 'example_google_map.dart';
1111
import 'page.dart';
1212

1313
class AnimateCameraPage extends GoogleMapExampleAppPage {
14-
const AnimateCameraPage({Key? key})
15-
: super(const Icon(Icons.map), 'Camera control, animated', key: key);
14+
const AnimateCameraPage({super.key})
15+
: super(const Icon(Icons.map), 'Camera control, animated');
1616

1717
@override
1818
Widget build(BuildContext context) {

packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/clustering.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import 'page.dart';
1313
/// Page for demonstrating marker clustering support.
1414
class ClusteringPage extends GoogleMapExampleAppPage {
1515
/// Default Constructor.
16-
const ClusteringPage({Key? key})
17-
: super(const Icon(Icons.place), 'Manage clustering', key: key);
16+
const ClusteringPage({super.key})
17+
: super(const Icon(Icons.place), 'Manage clustering');
1818

1919
@override
2020
Widget build(BuildContext context) {

packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/ground_overlay.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import 'page.dart';
1313
enum _GroundOverlayPlacing { position, bounds }
1414

1515
class GroundOverlayPage extends GoogleMapExampleAppPage {
16-
const GroundOverlayPage({Key? key})
17-
: super(const Icon(Icons.map), 'Ground overlay', key: key);
16+
const GroundOverlayPage({super.key})
17+
: super(const Icon(Icons.map), 'Ground overlay');
1818

1919
@override
2020
Widget build(BuildContext context) {

packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/lite_mode.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ const CameraPosition _kInitialPosition = CameraPosition(
1616
);
1717

1818
class LiteModePage extends GoogleMapExampleAppPage {
19-
const LiteModePage({Key? key})
20-
: super(const Icon(Icons.map), 'Lite mode', key: key);
19+
const LiteModePage({super.key}) : super(const Icon(Icons.map), 'Lite mode');
2120

2221
@override
2322
Widget build(BuildContext context) {

packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_click.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ const CameraPosition _kInitialPosition = CameraPosition(
1616
);
1717

1818
class MapClickPage extends GoogleMapExampleAppPage {
19-
const MapClickPage({Key? key})
20-
: super(const Icon(Icons.mouse), 'Map click', key: key);
19+
const MapClickPage({super.key}) : super(const Icon(Icons.mouse), 'Map click');
2120

2221
@override
2322
Widget build(BuildContext context) {

packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_coordinates.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const CameraPosition _kInitialPosition = CameraPosition(
1616
);
1717

1818
class MapCoordinatesPage extends GoogleMapExampleAppPage {
19-
const MapCoordinatesPage({Key? key})
20-
: super(const Icon(Icons.map), 'Map coordinates', key: key);
19+
const MapCoordinatesPage({super.key})
20+
: super(const Icon(Icons.map), 'Map coordinates');
2121

2222
@override
2323
Widget build(BuildContext context) {

packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_map_id.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import 'example_google_map.dart';
1111
import 'page.dart';
1212

1313
class MapIdPage extends GoogleMapExampleAppPage {
14-
const MapIdPage({Key? key})
15-
: super(const Icon(Icons.map), 'Cloud-based maps styling', key: key);
14+
const MapIdPage({super.key})
15+
: super(const Icon(Icons.map), 'Cloud-based maps styling');
1616

1717
@override
1818
Widget build(BuildContext context) {

packages/google_maps_flutter/google_maps_flutter_ios_shared_code/example/lib/map_ui.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ final LatLngBounds sydneyBounds = LatLngBounds(
1717
);
1818

1919
class MapUiPage extends GoogleMapExampleAppPage {
20-
const MapUiPage({Key? key})
21-
: super(const Icon(Icons.map), 'User interface', key: key);
20+
const MapUiPage({super.key}) : super(const Icon(Icons.map), 'User interface');
2221

2322
@override
2423
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)