at_location_flutter library

A library to provide location sharing functionality used by the at_protocol packages and apps

Classes

Anchor
AnchorPos<T>
AnimatedTile
AssetTileProvider
AtLocationFlutterPlugin
A class defined to show markers based on current location of mentioned atsigns.
CachedNetworkTileProvider
CircleLayer
CircleLayerOptions
CircleLayerWidget
CircleMarker
CirclePainter
Coords<T extends num>
Crs
An abstract representation of a Coordinate Reference System.
CrsSimple
CustomPoint<T extends num>
CustomTileProvider
DistanceCalculate
Earth
Epsg3857
The most common CRS used for rendering maps.
Epsg4326
A common CRS among GIS enthusiasts. Uses simple Equirectangular projection.
FileTileProvider
FitBoundsOptions
FlutterMap
Renders a map composed of a list of layers powered by LayerOptions.
GroupLayer
GroupLayerOptions
LayerOptions that describe a layer composed by multiple built-in layers.
GroupLayerWidget
HomeScreen
HybridModel
Model containing the displayName, image, eta, marker associated with the latLng.
LatLngBounds
LayerOptions
Common type between all LayerOptions.
Level
LocationModal
LocationNotificationModel
Model containing all the information needed for location sharing.
MapController
Controller to programmatically interact with FlutterMap.
MapOptions
Allows you to provide your map's starting properties for zoom, rotation and center. Alternatively you can provide bounds instead of center. If both, center and bounds are provided, bounds will take preference over center. Zoom, pan boundary and interactivity constraints can be specified here too.
MapPlugin
MapPosition
Position's type for PositionCallback.
Marker
MarkerLayer
MarkerLayerOptions
MarkerLayerWidget
NetworkTileProvider
NonCachingNetworkTileProvider
OverlayImage
OverlayImageLayer
OverlayImageLayerOptions
OverlayImageLayerWidget
Polygon
PolygonLayer
PolygonLayerOptions
PolygonLayerWidget
PolygonPainter
Polyline
PolylineLayer
PolylineLayerOptions
PolylineLayerWidget
PolylinePainter
Proj4Crs
Custom CRS
Projection
RequestLocationSheet
SearchLocationService
SendLocationNotification
masterSwitchState will control whether location is sent to any user
ShareLocationSheet
SphericalMercator
SyncOperationDetails
SyncSecondary
A class to manage all the server calls. SyncSecondary makes sure that server calls are not interfering with each other.
Tile
TileLayer
TileLayerOptions
Describes the needed properties to create a tile-based layer. A tile is an image bound to a specific geographical position.
TileLayerWidget
TileProvider
Transformation
WMSTileLayerOptions

Functions

buildMarker(HybridModel user, {bool singleMarker = false, Widget? marker}) Marker
deleteAllLocationData() → void
deletes all the location notifications of the logged in atsign being shared with any atsign
deleteLocationData(LocationNotificationModel locationNotificationModel) Future<bool>
deletes the location notification of the logged in atsign being shared with locationNotificationModel.receiver
eventShowLocation(List<HybridModel> users, LatLng venue) Widget
getAllNotification() Stream
returns a Stream of 'KeyLocationModel' having all the shared and request location keys.
getAtKey(String regexKey) → AtKey
returns the 'AtKey' of the regexKey
getMyLocation() Future<LatLng?>
Returns current LatLng of the device.
initializeLocationService(AtClientImpl atClientImpl, String currentAtSign, GlobalKey<NavigatorState> navKey, {required String mapKey, required String apiKey, bool showDialogBox = false, String rootDomain = MixedConstants.ROOT_DOMAIN, Function? getAtValue, dynamic streamAlternative(List<KeyLocationModel>)?}) → void
Function to initialise the package. Should be mandatorily called before accessing package functionalities.
sendRequestLocationNotification(String atsign) Future<bool?>
sends a request location notification to the atsign. before calling this atsign should be checked if valid or not.
sendShareLocationNotification(String atsign, int? minutes) Future<bool?>
sends a share location notification to the atsign, with a 'ttl' of minutes. before calling this atsign should be checked if valid or not.
showLocation(Key? key, MapController? mapController, {LatLng? location, List<LatLng>? locationList, Widget? locationListMarker}) Widget
A widget defined to show zero or one or a list of geo co-ordinates with custom marker.

Typedefs

ErrorTileCallBack = void Function(Tile? tile, dynamic error)
LongPressCallback = void Function(LatLng? point)
PositionCallback = void Function(MapPosition position, bool hasGesture)
TapCallback = void Function(LatLng? point)
TileReady = void Function(Coords<double>? coords, dynamic error, Tile tile)