UArGeoView constructor

const UArGeoView({
  1. required List<UArPlace> places,
  2. UArConfig config = const UArConfig(mode: UArMode.geo, planeDetection: UArPlaneDetection.horizontal, planeStyle: UArPlaneStyle.hidden, coachingGoal: UArCoachingGoal.tracking),
  3. double maxDistance = 800,
  4. int maxVisible = 20,
  5. Widget cardBuilder(
    1. BuildContext context,
    2. UArPlace place,
    3. double distance,
    4. UArProjection projection,
    )?,
  6. Widget edgeIndicatorBuilder(
    1. BuildContext context,
    2. UArPlace place,
    3. double distance,
    4. bool left,
    )?,
  7. bool showEdgeIndicators = true,
  8. bool showCompass = true,
  9. bool stackCards = true,
  10. Size cardSize = const Size(230, 86),
  11. Duration refreshInterval = const Duration(seconds: 20),
  12. void onPlaceTap(
    1. UArPlace place
    )?,
  13. UArLabels labels = const UArLabels(),
  14. UArStyle style = const UArStyle(),
  15. bool showCloseButton = true,
  16. Key? key,
})

Implementation

const UArGeoView({
  required this.places,
  this.config = const UArConfig(mode: UArMode.geo, planeDetection: UArPlaneDetection.horizontal, planeStyle: UArPlaneStyle.hidden, coachingGoal: UArCoachingGoal.tracking),
  this.maxDistance = 800,
  this.maxVisible = 20,
  this.cardBuilder,
  this.edgeIndicatorBuilder,
  this.showEdgeIndicators = true,
  this.showCompass = true,
  this.stackCards = true,
  this.cardSize = const Size(230, 86),
  this.refreshInterval = const Duration(seconds: 20),
  this.onPlaceTap,
  this.labels = const UArLabels(),
  this.style = const UArStyle(),
  this.showCloseButton = true,
  super.key,
});