Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Plugins | 16,786 | 1,556 | 615 | a month ago | 58 | June 06, 2022 | 1 | bsd-3-clause | Dart | |
Plugins for Flutter maintained by the Flutter team | ||||||||||
Flutter Desktop Embedding | 7,078 | 6 | 2 months ago | 10 | August 18, 2022 | 3 | apache-2.0 | C++ | ||
Experimental plugins for Flutter for Desktop | ||||||||||
Flutter Ui Nice | 3,388 | a year ago | 7 | Dart | ||||||
More than 130+ pages in this beautiful app and more than 45 developers has contributed to it. | ||||||||||
Figmatocode | 2,870 | a month ago | 23 | gpl-3.0 | TypeScript | |||||
Generate responsive pages and apps on HTML, Tailwind, Flutter and SwiftUI. | ||||||||||
Sqflite | 2,587 | 799 | 139 | 11 days ago | 125 | September 19, 2022 | 142 | bsd-2-clause | Dart | |
SQLite flutter plugin | ||||||||||
Flutter_inappwebview | 2,446 | 1 | 46 | 3 days ago | 51 | May 05, 2022 | 685 | apache-2.0 | Dart | |
A Flutter plugin that allows you to add an inline webview, to use a headless webview, and to open an in-app browser window. | ||||||||||
Flutter Study | 2,254 | 3 years ago | 5 | |||||||
Flutter Study | ||||||||||
Flutter_local_notifications | 2,166 | 108 | 52 | 6 days ago | 221 | September 23, 2022 | 44 | bsd-3-clause | Dart | |
A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux | ||||||||||
Cloudbase Framework | 1,876 | 21 | 6 months ago | 130 | August 23, 2022 | 37 | other | JavaScript | ||
腾讯云开发云原生一体化部署工具 🚀 CloudBase Framework:一键部署,不限框架语言,云端一体化开发,基于Serverless 架构。A front-end and back-end integrated deployment tool. One-click deploy to serverless architecture. https://docs.cloudbase.net/framework/index | ||||||||||
Flutter Intellij | 1,859 | a day ago | 517 | bsd-3-clause | Java | |||||
Flutter Plugin for IntelliJ |
A Flutter plugin to provide native location.
WARN: This plugin was written in swift/kotlin to be able to use it, you should have created the project with:
flutter create -i swift -a kotlin project_name
For help getting started with Flutter, view our online documentation. For help on editing plugin code, view the documentation.
Add the dependency to your pubspec.yaml file.
dependencies:
flutter_location: ^0.0.4
For iOS device, add these in lines in the Info.plist file:
<key>NSLocationWhenInUseUsageDescription</key>
<string>This message will be display to the user</string>
For android device, add these in lines in the AndroidManifest.xml file:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Then import the plugin in your code:
import 'package:flutter_location/flutter_location.dart'; // Plugin
import 'package:flutter_location/permission.dart'; // Return type
import 'package:flutter_location/location.dart'; // Return type
Look into the example for utilisation:
Location _location;
Location _currentLocation;
@override
void initState() {
super.initState();
initLocation();
}
Future<Permission> initPermission() async {
Permission permission;
bool isDetermined = false;
await FlutterLocation.requestPermission;
while (!isDetermined) {
permission = await FlutterLocation.permission;
if (permission == Permission.NOT_DETERMINED) {
await Future.delayed(_waitForUser);
} else {
isDetermined = true;
}
}
return permission;
}
void initLocation() async {
Permission permission;
permission = await initPermission();
Location location;
if (permission == Permission.AUTHORIZED) {
location = await FlutterLocation.location;
FlutterLocation.onLocationChanged.listen(
(location) {
setState(() => this._currentLocation = location);
},
);
}
setState(() {
this._permission = permission;
this._location = location;
});
}
For more examples check out:
Methods | Description |
---|---|
Future |
Get the level of permission the user has granted to the app (NOT_DETERMINED, DENIED, AUTHORIZED). |
Future |
Get the location of the user. |
Stream |
Get the stream of the user's location. |
Future |
Show pop-up to the user to accept or decline permission authorizations. true if the pop-up was shown false if not (only will request once to show the popup) |