fixed doc comments
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user