Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Charunirathnayake committed Jan 10, 2020
1 parent 828f220 commit 449ff9b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
33 changes: 24 additions & 9 deletions miniproject/lib/map_screen/first_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,30 @@ class Map_state extends State<Map> {
CameraPosition(target: _initialPosition, zoom: 10),
onMapCreated: onCreated,
myLocationButtonEnabled: true,
)
]);
mapType: MapType.normal,
compassEnabled: true,
markers: _makers,
onCameraMove: _onCameraMove,
),
Positioned(child: FloatingActionButton(onPressed: _onAddMarkerPressed,),
top: 40,
right: 10,

)
]);
}

void onCreated(GoogleMapController controller) {
setState((){
mapController=controller;
});
}


void _onCameraMove(CameraPosition position) {
}

void _onAddMarkerPressed() {
}

void onCreated(GoogleMapController controller) {
setState((){
mapController=controller;
});
}

}

2 changes: 2 additions & 0 deletions miniproject/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ dependencies:
google_maps_flutter: ^0.5.11+1
geoflutterfire: ^2.0.3+2
location: ^2.3.5
#google_maps_flutter: ^0.5.21+15




Expand Down

0 comments on commit 449ff9b

Please sign in to comment.