Now for some internet optimism.
at_events_flutter
A flutter plugin project to manage events.
Sample usage
It is expected that the app will first create an AtClientService instance and authenticate an atsign.
The event service needs to be initialised with the atClient
from the AtClientService
and the root server.
initialiseEventService(
clientSdkService.atClientServiceInstance.atClient,
NavService.navKey,
rootDomain: MixedConstants.ROOT_DOMAIN,
mapKey: 'xxxx',
apiKey: 'xxxx');
To create a new event:
await showModalBottomSheet<void>(
context: context,
isScrollControlled: true,
shape: StadiumBorder(),
builder: (BuildContext context) {
return Container(
height: height,
decoration: BoxDecoration(
color: Theme.of(context).scaffoldBackgroundColor,
borderRadius: BorderRadius.only(
topLeft: const Radius.circular(12.0),
topRight: const Radius.circular(12.0),
),
),
child: CreateEvent(),
);
});
Navigating to the events list is done simply by using:
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => EventList(),
),
);
Steps to get mapKey
- Go to https://cloud.maptiler.com/maps/streets/
- Click on
sign in
orcreate a free account
- Come back to https://cloud.maptiler.com/maps/streets/ if not redirected automatically
- Get your key from your
Embeddable viewer
input 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_events_flutter
- common_components/bottom_sheet
- common_components/concurrent_event_request_dialog
- common_components/contact_list_tile
- This widget is a list tile to display contacts selected for sharing
it takes
onlyRemovemethod
as a boolean with default value asfalse
iftrue
trailing icon remainsclose
icononAdd
method is disabled allisSelected
functionalities are disabled - common_components/contacts_initials
- This is a widget to display the initials of an atsign which does not have a profile picture
it takes in @param
size
as a double and @paraminitials
as String and display those initials in a circular avatar with random colors - common_components/custom_circle_avatar
- common_components/custom_heading
- common_components/custom_popup_route
- common_components/custom_toast
- common_components/display_tile
- common_components/draggable_symbol
- common_components/error_screen
- common_components/event_time_selection
- common_components/floating_icon
- common_components/invite_card
- common_components/loading_widget
- common_components/location_tile
- common_components/overlapping-contacts
- common_components/text_tile
- common_components/triple_dot_loading
- models/enums_model
- models/event_key_location_model
- models/event_member_location
- models/event_notification
- models/hybrid_notifiation_model
- screens/create_event
- screens/map_screen/events_collapsed_content
- screens/map_screen/events_map_screen
- screens/map_screen/participants
- screens/notification_dialog/event_notification_dialog
- screens/one_day_event
- screens/recurring_event
- screens/select_location
- screens/selected_location
- services/at_event_notification_listener
- services/contact_service
- services/event_key_stream_service
- services/event_services
- services/home_event_service
- services/sync_secondary
- utils/colors
- utils/constants
- utils/init_events_service
- utils/text_styles
- utils/texts