fixed doc comments

This commit is contained in:
Nico
2025-06-18 15:58:01 +02:00
parent d1d5761b0a
commit 3686cfd018
9 changed files with 12 additions and 10 deletions

View File

@@ -249,7 +249,7 @@ class AppLocalizationsDe extends AppLocalizations {
String get viewExcursionen => 'Exkursionen anzeigen';
@override
String get showloginscreen => 'Login-Bildschirm Anzeigen';
String get showloginscreen => 'Login-Bildschirm anzeigen';
@override
String get ffApiAddress => 'Fotofallen Api-Adresse';

View File

@@ -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();

View File

@@ -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();

View File

@@ -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,

View File

@@ -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,

View File

@@ -205,7 +205,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
}
/// Get all form field values as a map
/// @return Map<String, String> Map of field names to values
/// @return Map[String, String] Map of field names to values
Map<String, String> getFieldsText() {
Map<String, String> puff = {};
@@ -398,8 +398,9 @@ class _ExcursionMainState extends State<ExcursionMain> {
TextButton(
onPressed: () async {
await Geolocator.openAppSettings();
if (context.mounted)
if (context.mounted) {
Navigator.of(context).pop(true);
}
},
child: Text(
AppLocalizations.of(context)!.openSettings),

View File

@@ -66,7 +66,7 @@ class _DatumState extends State<Datum> {
}
/// Shows date picker dialog and returns 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,

View File

@@ -62,7 +62,7 @@ class _VarTextFieldState extends State<VarTextField> {
}
/// Load previous values from the appropriate database
/// @return Future<List<String>> List of previous values
/// @return Future[List[String]] List of previous values
Future<List<String>> _loadData() async {
List<Map<String, dynamic>> entries = [];
List<Map<String, dynamic>> templatesEntries = [];

View File

@@ -98,3 +98,4 @@
4 jun 3h 45min
5 jun 2h 10min
6 jun 6h
18 jun 45min