Flutter - Location Service πΊπ
This app was developed from the tutorial Easy Flutter Location Service for Realtime Updates in Provider by Dane Mackier (Filledstacks).
This app show how create a location service in Flutter.
If you have this error: Plugin project :location_web not found. Please update settings.gradle.
, on android build after install localtion
plugin, do this follows steps:
-
open the file
settings.gradle
and update the file with this code bellow:def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() def plugins = new Properties() def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') if (pluginsFile.exists()) { pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } } plugins.each { name, path -> def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() include ":$name" project(":$name").projectDir = pluginDirectory }
Note: This will create a
.flutter-plugin
file which will have the plugin and its path.More about, check this link.