Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
end_location_chooser_screen.dart File Reference
import package;
import easy_localization.dart;
import material.dart;
import flutter_bloc.dart;
import flutter_screenutil.dart;
import google_maps_flutter.dart;
import geolocator.dart;
import geocoding.dart;
import go_router.dart;
import fluentui_system_icons.dart;
import dart;
import core;
import ui;
import theme;
import color_palette.dart;
import widgets;
import custom_scaffold.dart;
import router;
import routes.dart;
import bloc;
import planning_bloc;
import routing_planning_bloc.dart;
import auth;
import presentation;
import authentication_bloc;
import authentication_bloc.dart;
import models;
import saved_location.dart;
import location_search_bar.dart;
import saved_locations_list.dart;
import custom_pin_widget.dart;
import address_info_widget.dart;
import map_overlay_buttons.dart;
import confirm_location_button.dart;
Include dependency graph for end_location_chooser_screen.dart:

Go to the source code of this file.

Classes

class  StatefulWidget

Functions

override void initState ()
Future< void_getCurrentLocationForInit () async
void _onCameraMove (CameraPosition position)
void _onCameraIdle ()
Future< void_getAddressFromLocation (LatLng location) async
void _onSavedLocationSelected (SavedLocation location) async
void _confirmLocation ()
override Widget build (BuildContext context)
Widget _buildCenterPin ()
Widget _buildCenterDot ()
override void dispose ()

Variables

class EndLocationChooserScreen extends StatefulWidget _mapController
bool _isMapLoaded = false
final TextEditingController _searchController = TextEditingController()
LatLng _initialPosition = const LatLng(51.5074, -0.1278)
LatLng _currentCameraPosition = const LatLng(51.5074, -0.1278)
bool _isBottomSheetExpanded = false
bool _isBottomSheetVisible = false
String _currentAddress = 'scheduling.choose_end_location'.tr()
bool _isLoadingAddress = false
bool _isSearchVisible = false
Timer _debounceTimer
final String mapStyle
final List< SavedLocation_savedLocations

Function Documentation

◆ _buildCenterDot()

Widget _buildCenterDot ( )

Definition at line 422 of file end_location_chooser_screen.dart.

Here is the caller graph for this function:

◆ _buildCenterPin()

Widget _buildCenterPin ( )

Definition at line 404 of file end_location_chooser_screen.dart.

Here is the caller graph for this function:

◆ _confirmLocation()

void _confirmLocation ( )

Definition at line 227 of file end_location_chooser_screen.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _getAddressFromLocation()

Future< void > _getAddressFromLocation ( LatLng location)

Definition at line 159 of file end_location_chooser_screen.dart.

Here is the caller graph for this function:

◆ _getCurrentLocationForInit()

Future< void > _getCurrentLocationForInit ( )

Definition at line 94 of file end_location_chooser_screen.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _onCameraIdle()

void _onCameraIdle ( )

Definition at line 152 of file end_location_chooser_screen.dart.

Here is the caller graph for this function:

◆ _onCameraMove()

void _onCameraMove ( CameraPosition position)

Definition at line 137 of file end_location_chooser_screen.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _onSavedLocationSelected()

void _onSavedLocationSelected ( SavedLocation location)

Definition at line 209 of file end_location_chooser_screen.dart.

Here is the caller graph for this function:

◆ build()

override Widget build ( BuildContext context)

Definition at line 249 of file end_location_chooser_screen.dart.

Here is the call graph for this function:

◆ dispose()

override void dispose ( )

Definition at line 448 of file end_location_chooser_screen.dart.

◆ initState()

override void initState ( )

Definition at line 89 of file end_location_chooser_screen.dart.

Here is the call graph for this function:

Variable Documentation

◆ _currentAddress

String _currentAddress = 'scheduling.choose_end_location'.tr()

Definition at line 40 of file end_location_chooser_screen.dart.

◆ _currentCameraPosition

LatLng _currentCameraPosition = const LatLng(51.5074, -0.1278)

Definition at line 37 of file end_location_chooser_screen.dart.

◆ _debounceTimer

Timer _debounceTimer

Definition at line 43 of file end_location_chooser_screen.dart.

◆ _initialPosition

LatLng _initialPosition = const LatLng(51.5074, -0.1278)

Definition at line 36 of file end_location_chooser_screen.dart.

◆ _isBottomSheetExpanded

bool _isBottomSheetExpanded = false

Definition at line 38 of file end_location_chooser_screen.dart.

◆ _isBottomSheetVisible

bool _isBottomSheetVisible = false

Definition at line 39 of file end_location_chooser_screen.dart.

◆ _isLoadingAddress

bool _isLoadingAddress = false

Definition at line 41 of file end_location_chooser_screen.dart.

◆ _isMapLoaded

bool _isMapLoaded = false

Definition at line 34 of file end_location_chooser_screen.dart.

◆ _isSearchVisible

bool _isSearchVisible = false

Definition at line 42 of file end_location_chooser_screen.dart.

◆ _mapController

class EndLocationChooserScreen extends StatefulWidget _mapController

◆ _savedLocations

final List<SavedLocation> _savedLocations
Initial value:
= [
name: 'Dammam Warehouse',
address: 'Al-Dammam, Saudi Arabia',
latLng: LatLng(26.251011, 49.971146),
icon: FluentIcons.building_16_filled,
),
name: 'Jeddah Warehouse',
address: 'Prince Abdulmajeed, Jeddah Saudi Arabia',
latLng: LatLng(21.418327917324838, 39.25912328519525),
icon: FluentIcons.building_16_filled,
),
name: 'Riyadh Warehouse',
address: 'Al Misfat, Riyad Arabie saoudite',
latLng: LatLng(24.5518913, 46.8818212),
icon: FluentIcons.building_16_filled,
),
]
final String address

Definition at line 67 of file end_location_chooser_screen.dart.

◆ _searchController

final TextEditingController _searchController = TextEditingController()

Definition at line 35 of file end_location_chooser_screen.dart.

◆ mapStyle

final String mapStyle
Initial value:
= '''
[
{
"featureType": "poi",
"elementType": "labels.icon",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "transit",
"stylers": [
{
"visibility": "off"
}
]
}
]
'''

Definition at line 45 of file end_location_chooser_screen.dart.