Skip to content

Commit 880d4b7

Browse files
committed
[google_maps_flutter] Use super parameters in more places in examples
1 parent a9d6c1c commit 880d4b7

111 files changed

Lines changed: 197 additions & 282 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

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

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

packages/google_maps_flutter/google_maps_flutter/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 'place_advanced_marker.dart';
1515
/// Same as [ClusteringPage] but works with [AdvancedMarker].
1616
class AdvancedMarkersClustering extends GoogleMapExampleAppPage {
1717
/// Default constructor.
18-
const AdvancedMarkersClustering({Key? key, required this.mapId})
18+
const AdvancedMarkersClustering({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/example/lib/animate_camera.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import 'package:google_maps_flutter/google_maps_flutter.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/example/lib/clustering.dart

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

1818
@override
1919
Widget build(BuildContext context) {

packages/google_maps_flutter/google_maps_flutter/example/lib/collision_behavior.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ import 'place_advanced_marker.dart';
1313
/// Page demonstrating how to use AdvancedMarker's collision behavior.
1414
class AdvancedMarkerCollisionBehaviorPage extends GoogleMapExampleAppPage {
1515
/// Default constructor.
16-
const AdvancedMarkerCollisionBehaviorPage({Key? key, required this.mapId})
16+
const AdvancedMarkerCollisionBehaviorPage({super.key, required this.mapId})
1717
: super(
1818
const Icon(Icons.not_listed_location),
1919
'Advanced marker collision behavior',
20-
key: key,
2120
);
2221

2322
/// Map ID to use for the GoogleMap.

packages/google_maps_flutter/google_maps_flutter/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/example/lib/heatmap.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import 'package:google_maps_flutter/google_maps_flutter.dart';
1010
import 'page.dart';
1111

1212
class HeatmapPage extends GoogleMapExampleAppPage {
13-
const HeatmapPage({Key? key})
14-
: super(const Icon(Icons.map), 'Heatmaps', key: key);
13+
const HeatmapPage({super.key}) : super(const Icon(Icons.map), 'Heatmaps');
1514

1615
@override
1716
Widget build(BuildContext context) {

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

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

1616
class LiteModePage extends GoogleMapExampleAppPage {
17-
const LiteModePage({Key? key})
18-
: super(const Icon(Icons.map), 'Lite mode', key: key);
17+
const LiteModePage({super.key}) : super(const Icon(Icons.map), 'Lite mode');
1918

2019
@override
2120
Widget build(BuildContext context) {

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

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

1616
class MapClickPage extends GoogleMapExampleAppPage {
17-
const MapClickPage({Key? key})
18-
: super(const Icon(Icons.mouse), 'Map click', key: key);
17+
const MapClickPage({super.key}) : super(const Icon(Icons.mouse), 'Map click');
1918

2019
@override
2120
Widget build(BuildContext context) {

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

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

1616
class MapCoordinatesPage extends GoogleMapExampleAppPage {
17-
const MapCoordinatesPage({Key? key})
18-
: super(const Icon(Icons.map), 'Map coordinates', key: key);
17+
const MapCoordinatesPage({super.key})
18+
: super(const Icon(Icons.map), 'Map coordinates');
1919

2020
@override
2121
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)