Now for some internet optimism.
at_location_flutter
A flutter plugin project to share location between two atsigns.
Sample usage
It is expected that the app will first create an AtClientService instance and authenticate an atsign.
The location service needs to be initialised with the atClient from the AtClientService, current atsign and a global navigator key.
initializeLocationService(
clientSdkService.atClientServiceInstance.atClient,
activeAtSign,
NavService.navKey,
mapKey: 'xxxx',
apiKey: 'xxxx',
showDialogBox: true);
Navigating to the maps view is done simply by using:
Navigator.of(context).push(MaterialPageRoute(
builder: (BuildContext context) => HomeScreen(),
));
To request location from an atsign:
await sendRequestLocationNotification(receiver);
To share location from an atsign and duration of share in minutes:
await sendShareLocationNotification(receiver, 30);
Steps to get mapKey
- Go to https://cloud.maptiler.com/maps/streets/
- Click on
sign inorcreate a free account - Come back to https://cloud.maptiler.com/maps/streets/ if not redirected automatically
- Get your key from your
Embeddable viewerinput text box- Eg : https://api.maptiler.com/maps/streets/?key=<YOUR_MAP_KEY>#-0.1/-2.80318/-38.08702
- Copy <YOUR_MAP_KEY> and use it.
Steps to get apiKey
- Go to https://developer.here.com/tutorials/getting-here-credentials/ and follow the steps
Libraries
- at_location_flutter
- A library to provide location sharing functionality used by the at_protocol packages and apps
- at_location_flutter_plugin
- common_components/bottom_sheet
- common_components/build_marker
- common_components/circle_marker_painter
- common_components/collapsed_content
- common_components/contacts_initial
- This is a widget to display the initials of an atsign which does not have a profile picture
it takes in @param
sizeas a double and @paraminitialsas String and display those initials in a circular avatar with random colors - common_components/custom_circle_avatar
- common_components/custom_popup_route
- common_components/custom_toast
- common_components/display_tile
- common_components/draggable_symbol
- common_components/floating_icon
- common_components/loading_widget
- common_components/location_prompt_dialog
- common_components/marker_cluster
- common_components/marker_custom_painter
- common_components/pointed_bottom
- common_components/popup
- common_components/tasks
- common_components/text_tile
- common_components/text_tile_repeater
- event_show_location
- location_modal/hybrid_model
- location_modal/key_location_model
- location_modal/location_modal
- location_modal/location_notification
- map_content/flutter_map/flutter_map
- map_content/flutter_map/src/core/bounds
- map_content/flutter_map/src/core/center_zoom
- map_content/flutter_map/src/core/point
- map_content/flutter_map/src/core/util
- map_content/flutter_map/src/geo/crs/crs
- map_content/flutter_map/src/geo/latlng_bounds
- map_content/flutter_map/src/gestures/gestures
- map_content/flutter_map/src/gestures/latlng_tween
- map_content/flutter_map/src/layer/circle_layer
- map_content/flutter_map/src/layer/group_layer
- map_content/flutter_map/src/layer/layer
- map_content/flutter_map/src/layer/marker_layer
- map_content/flutter_map/src/layer/overlay_image_layer
- map_content/flutter_map/src/layer/polygon_layer
- map_content/flutter_map/src/layer/polyline_layer
- map_content/flutter_map/src/layer/tile_layer
- map_content/flutter_map/src/layer/tile_provider/tile_provider
- map_content/flutter_map/src/map/flutter_map_state
- map_content/flutter_map/src/map/map
- map_content/flutter_map/src/map/map_state_widget
- map_content/flutter_map/src/plugins/plugin
- map_content/flutter_map_marker_cluster/src/anim_type
- map_content/flutter_map_marker_cluster/src/core/distance_grid
- map_content/flutter_map_marker_cluster/src/core/quick_hull
- map_content/flutter_map_marker_cluster/src/core/spiderfy
- map_content/flutter_map_marker_cluster/src/marker_cluster_layer
- map_content/flutter_map_marker_cluster/src/marker_cluster_layer_options
- map_content/flutter_map_marker_cluster/src/marker_cluster_plugin
- map_content/flutter_map_marker_cluster/src/node/marker_cluster_node
- map_content/flutter_map_marker_cluster/src/node/marker_node
- map_content/flutter_map_marker_popup/src/marker_popup
- map_content/flutter_map_marker_popup/src/popup_builder
- map_content/flutter_map_marker_popup/src/popup_container
- map_content/flutter_map_marker_popup/src/popup_controller
- map_content/flutter_map_marker_popup/src/popup_event
- map_content/flutter_map_marker_popup/src/popup_event_actions
- map_content/flutter_map_marker_popup/src/popup_marker_layer
- map_content/flutter_map_marker_popup/src/popup_marker_layer_options
- map_content/flutter_map_marker_popup/src/popup_marker_layer_plugin
- map_content/flutter_map_marker_popup/src/popup_position
- map_content/flutter_map_marker_popup/src/popup_snap
- screens/home/home_screen
- screens/map_screen/map_screen
- screens/notification_dialog/notification_dialog
- screens/request_location/request_location_sheet
- service/api_service
- service/at_location_notification_listener
- service/contact_service
- service/distance_calculate
- service/home_screen_service
- service/key_stream_service
- service/location_service
- service/master_location_service
- service/my_location
- service/request_location_service
- service/search_location_service
- service/send_location_notification
- service/sync_secondary
- show_location
- utils/constants/colors
- utils/constants/constants
- utils/constants/init_location_service
- utils/constants/text_styles