fixed doc comments
This commit is contained in:
@@ -133,7 +133,7 @@ class _AddCamMainState extends State<AddCamMain> {
|
||||
|
||||
/// Initializes the GPS position
|
||||
/// Handles location permissions and device settings
|
||||
/// @return Future<Position> The determined position
|
||||
/// @return Future[Position] The determined position
|
||||
Future<Position> _initializePosition() async {
|
||||
try {
|
||||
final position = await GeolocatorService.deteterminePosition();
|
||||
|
||||
@@ -17,7 +17,7 @@ class GeolocatorService {
|
||||
/// @throws LocationDisabledException if location services are disabled
|
||||
/// @throws LocationForbiddenException if location permission is denied
|
||||
/// @throws NeedAlwaysLocation if always-on permission is needed but not granted
|
||||
/// @return Future<Position> The current GPS position
|
||||
/// @return Future[Position] The current GPS position
|
||||
static Future<Position> deteterminePosition({bool alwaysOnNeeded = false}) async {
|
||||
bool locationEnabled;
|
||||
LocationPermission permissionGiven;
|
||||
@@ -46,7 +46,7 @@ class GeolocatorService {
|
||||
}
|
||||
|
||||
/// Check if always-on location permission is enabled
|
||||
/// @return Future<bool> True if always-on permission is granted or location is disabled
|
||||
/// @return Future[bool] True if always-on permission is granted or location is disabled
|
||||
static Future<bool> alwaysPositionEnabled() async {
|
||||
LocationPermission permissionGiven = await Geolocator.checkPermission();
|
||||
bool locationEnabled = await Geolocator.isLocationServiceEnabled();
|
||||
|
||||
@@ -78,7 +78,7 @@ class _AbbauDatState extends State<AbbauDat> {
|
||||
}
|
||||
|
||||
/// Show date picker dialog and return selected date
|
||||
/// @return Future<DateTime?> Selected date or null if cancelled
|
||||
/// @return Future[DateTime?] Selected date or null if cancelled
|
||||
Future<DateTime?> pickDate() async {
|
||||
final date = await showDatePicker(
|
||||
context: context,
|
||||
|
||||
@@ -63,7 +63,7 @@ class _KontDatState extends State<KontDat> {
|
||||
}
|
||||
|
||||
/// Show date picker dialog and return selected date
|
||||
/// @return Future<DateTime?> Selected date or null if cancelled
|
||||
/// @return Future[DateTime?] Selected date or null if cancelled
|
||||
Future<DateTime?> pickDate() async {
|
||||
final date = await showDatePicker(
|
||||
context: context,
|
||||
|
||||
Reference in New Issue
Block a user