@@ -660,7 +660,7 @@ void main() {
660660 expect (map.tileOverlaySets.length, 1 );
661661 });
662662
663- testWidgets ('Is default color scheme null ' , (WidgetTester tester) async {
663+ testWidgets ('Default markerType is "marker" ' , (WidgetTester tester) async {
664664 await tester.pumpWidget (
665665 const Directionality (
666666 textDirection: TextDirection .ltr,
@@ -671,77 +671,77 @@ void main() {
671671 );
672672
673673 final PlatformMapStateRecorder map = platform.lastCreatedMap;
674-
675- expect (map.mapConfiguration.colorScheme, null );
674+ expect (map.mapConfiguration.markerType, MarkerType .marker);
676675 });
677676
678- testWidgets ('Can set color scheme to non-default' , (
679- WidgetTester tester,
680- ) async {
677+ testWidgets ('Can update markerType' , (WidgetTester tester) async {
681678 await tester.pumpWidget (
682679 const Directionality (
683680 textDirection: TextDirection .ltr,
684681 child: GoogleMap (
685682 initialCameraPosition: CameraPosition (target: LatLng (10.0 , 15.0 )),
686- colorScheme: MapColorScheme .light,
683+ // ignore: avoid_redundant_argument_values
684+ markerType: GoogleMapMarkerType .marker,
687685 ),
688686 ),
689687 );
690688
691689 final PlatformMapStateRecorder map = platform.lastCreatedMap;
690+ expect (map.mapConfiguration.markerType, MarkerType .marker);
692691
693- expect (map.mapConfiguration.colorScheme, MapColorScheme .light);
694- });
695-
696- testWidgets ('Default markerType is "marker"' , (WidgetTester tester) async {
697692 await tester.pumpWidget (
698693 const Directionality (
699694 textDirection: TextDirection .ltr,
700695 child: GoogleMap (
701696 initialCameraPosition: CameraPosition (target: LatLng (10.0 , 15.0 )),
697+ markerType: GoogleMapMarkerType .advancedMarker,
702698 ),
703699 ),
704700 );
701+ expect (map.mapConfiguration.markerType, MarkerType .advancedMarker);
705702
706- final PlatformMapStateRecorder map = platform.lastCreatedMap;
707- expect (map.mapConfiguration.markerType, MarkerType .marker);
708- });
709-
710- testWidgets ('Can update markerType' , (WidgetTester tester) async {
711703 await tester.pumpWidget (
712704 const Directionality (
713705 textDirection: TextDirection .ltr,
714706 child: GoogleMap (
715707 initialCameraPosition: CameraPosition (target: LatLng (10.0 , 15.0 )),
716- // ignore: avoid_redundant_argument_values
717- markerType: GoogleMapMarkerType .marker,
718708 ),
719709 ),
720710 );
721-
722- final PlatformMapStateRecorder map = platform.lastCreatedMap;
723711 expect (map.mapConfiguration.markerType, MarkerType .marker);
712+ });
724713
714+ testWidgets ('Is default color scheme null' , (WidgetTester tester) async {
725715 await tester.pumpWidget (
726716 const Directionality (
727717 textDirection: TextDirection .ltr,
728718 child: GoogleMap (
729719 initialCameraPosition: CameraPosition (target: LatLng (10.0 , 15.0 )),
730- markerType: GoogleMapMarkerType .advancedMarker,
731720 ),
732721 ),
733722 );
734- expect (map.mapConfiguration.markerType, MarkerType .advancedMarker);
735723
724+ final PlatformMapStateRecorder map = platform.lastCreatedMap;
725+
726+ expect (map.mapConfiguration.colorScheme, null );
727+ });
728+
729+ testWidgets ('Can set color scheme to non-default' , (
730+ WidgetTester tester,
731+ ) async {
736732 await tester.pumpWidget (
737733 const Directionality (
738734 textDirection: TextDirection .ltr,
739735 child: GoogleMap (
740736 initialCameraPosition: CameraPosition (target: LatLng (10.0 , 15.0 )),
737+ colorScheme: MapColorScheme .light,
741738 ),
742739 ),
743740 );
744- expect (map.mapConfiguration.markerType, MarkerType .marker);
741+
742+ final PlatformMapStateRecorder map = platform.lastCreatedMap;
743+
744+ expect (map.mapConfiguration.colorScheme, MapColorScheme .light);
745745 });
746746
747747 testWidgets ('Can update mapId' , (WidgetTester tester) async {
0 commit comments