31 lines
601 B
Dart
31 lines
601 B
Dart
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
|
|
|
class Venue {
|
|
late String venueName;
|
|
late int venueID;
|
|
late VenueType typeOfVenue;
|
|
late LatLng position;
|
|
late InfoWindow infoWindow;
|
|
bool inShade = false;
|
|
|
|
|
|
Venue(this.venueName,
|
|
this.venueID, this.typeOfVenue, this.position);
|
|
|
|
BitmapDescriptor drawIconColor() {
|
|
if(inShade) {
|
|
return BitmapDescriptor.defaultMarkerWithHue(BitmapDescriptor.hueAzure);
|
|
}
|
|
else {
|
|
return BitmapDescriptor.defaultMarkerWithHue(BitmapDescriptor.hueYellow);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
enum VenueType{
|
|
cafe, restaurant, bar
|
|
} |