commit ba5f3f457fa6eb63b1b0e73561b767ade1473e44 Author: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Sun Nov 16 18:54:30 2025 -0700 stub diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..78fd378 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +**/*.sw* diff --git a/cmd/app/main.dart b/cmd/app/main.dart new file mode 100644 index 0000000..26fe10a --- /dev/null +++ b/cmd/app/main.dart @@ -0,0 +1,26 @@ +import 'package:location/location.dart'; + +Location location = Location(); +location.enableBackgroundMode(enable: true) + +bool serviceEnabled; +PermissionStatus permissionGranted; +LocationData locationData; + +serviceEnabled = await location.serviceEnabled(); +if (!serviceEnabled) { + serviceEnabled = await location.requestService(); + if (!serviceEnabled) { + return; + } +} + +permissionGranted = await location.hasPermission(); +if (permissionGranted == PermissionStatus.denied) { + permissionGranted = await location.requestPermission(); + if (permissionGranted != PermissionStatus.granted) { + return; + } +} + +locationData = await location.getLocation(); diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..24f7780 --- /dev/null +++ b/mise.toml @@ -0,0 +1,2 @@ +[tools] +flutter = "latest" diff --git a/permissions.android.todo b/permissions.android.todo new file mode 100644 index 0000000..eb0c7ae --- /dev/null +++ b/permissions.android.todo @@ -0,0 +1,2 @@ + + diff --git a/pubspec.yaml.todo b/pubspec.yaml.todo new file mode 100644 index 0000000..980f0a9 --- /dev/null +++ b/pubspec.yaml.todo @@ -0,0 +1,2 @@ +dependencies: + location: ^5.0.0