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 | 3 months ago | 58 | June 06, 2022 | 1 | bsd-3-clause | Dart | |
Plugins for Flutter maintained by the Flutter team | ||||||||||
Flutter Desktop Embedding | 7,088 | 6 | a month ago | 10 | August 18, 2022 | 3 | apache-2.0 | C++ | ||
Experimental plugins for Flutter for Desktop | ||||||||||
Flutter Ui Nice | 3,424 | 14 days ago | 8 | Dart | ||||||
More than 130+ pages in this beautiful app and more than 45 developers has contributed to it. | ||||||||||
Figmatocode | 2,969 | 20 days ago | 24 | gpl-3.0 | TypeScript | |||||
Generate responsive pages and apps on HTML, Tailwind, Flutter and SwiftUI. | ||||||||||
Sqflite | 2,629 | 799 | 139 | 13 days ago | 125 | September 19, 2022 | 154 | bsd-2-clause | Dart | |
SQLite flutter plugin | ||||||||||
Flutter_inappwebview | 2,538 | 1 | 46 | 6 days ago | 51 | May 05, 2022 | 713 | 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,202 | 108 | 52 | 10 days ago | 221 | September 23, 2022 | 32 | bsd-3-clause | Dart | |
A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux | ||||||||||
Flutter Intellij | 1,869 | 11 hours ago | 526 | bsd-3-clause | Java | |||||
Flutter Plugin for IntelliJ | ||||||||||
Fijkplayer | 1,435 | 1 | 3 | 17 days ago | 49 | November 30, 2021 | 194 | mit | Dart | |
ijkplayer for flutter. ijkplayer 的 flutter 封装。 Flutter video/audio player. Flutter media player plugin for android/iOS based on ijkplayer. fijkplayer 是基于 ijkplayer 封装的 flutter 媒体播放器,开箱即用,无需编译 ijkplayer |
Note: ARKit is only supported by mobile devices with A9 or later processors (iPhone 6s/7/SE/8/X, iPad 2017/Pro) on iOS 11 and newer. For some features iOS 12 or newer is required.
Follow the installation instructions from Dart Packages site.
ARKit uses the device camera, so do not forget to provide the NSCameraUsageDescription
. You may specify it in Info.plist
like that:
<key>NSCameraUsageDescription</key>
<string>Describe why your app needs AR here.</string>
At the top level of the ios
folder uncomment the second line in the Podfile
and change the iOS minimum version from 9.0
to the appropriate one.
The minimum supported iOS version is 11.0
, though if you need image anchors use 11.3
, for image tracking configuration or face tracking set 12.0
, and for body tracking minimum version must be 13.0
.
From:
# platform :ios, '9.0'
To:
platform :ios, '11.0'
NOTE: If when running for the first time you get a cocoapods error, delete the Podfile.lock
file in the ios
folder. Open the ios
folder in the terminal and run:
pod install
The simplest code example:
import 'package:flutter/material.dart';
import 'package:arkit_plugin/arkit_plugin.dart';
import 'package:vector_math/vector_math_64.dart';
void main() => runApp(MaterialApp(home: MyApp()));
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
late ARKitController arkitController;
@override
void dispose() {
arkitController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) => Scaffold(
appBar: AppBar(title: const Text('ARKit in Flutter')),
body: ARKitSceneView(onARKitViewCreated: onARKitViewCreated));
void onARKitViewCreated(ARKitController arkitController) {
this.arkitController = arkitController;
final node = ARKitNode(
geometry: ARKitSphere(radius: 0.1), position: Vector3(0, 0, -0.5));
this.arkitController.add(node);
}
}
Result:
I would highly recommend to review the sample from the Example
folder inside the plugin. Some samples rely on this Earth image
Name | Description | Link | Demo |
---|---|---|---|
Hello World | The simplest scene with different geometries. | code | |
Check configuration | Shows which kinds of AR configuration are supported on the device | code | |
Earth | Sphere with an image texture and rotation animation. | code | |
Tap | Sphere which handles tap event. | code | |
Midas | Turns walls, floor, and Earth itself into gold by tap. | code | |
Plane Detection | Detects horizontal plane. | code | |
Distance tracking | Detects horizontal plane and track distance on it. | code | |
Measure | Measures distances | code | |
Physics | A sphere and a plane with dynamic and static physics | code | |
Image Detection | Detects Earth photo and puts a 3D object near it. | code | |
Network Image Detection | Detects Mars photo and puts a 3D object near it. | code | |
Custom Light | Hello World scene with a custom light spot. | code | |
Light Estimation | Estimates and applies the light around you. | code | |
Custom Object | Place custom object on plane with coaching overlay. | code | |
Occlusion | Spheres which are not visible after horizontal and vertical planes. | code | |
Manipulation | Custom objects with pinch and rotation events. | code | |
Face Tracking | Face mask sample. | code | |
Body Tracking | Dash that follows your hand. | code | |
Panorama | 360 photo. | code | |
Video | 360 video. | code | |
Custom Animation | Custom object animation. Port of eh3rrera/ARKitAnimation | code | |
Widget Projection | Flutter widgets in AR | code | |
Real Time Updates | Calls a function once per frame | code | |
Snapshot | Make a photo of AR content | code |
If you prefer video here is a playlist with "AR in Flutter" videos:
You might want to check the device capabilities before establishing an AR session. Review the Check Support sample for the implementation details.
If your app requires placing objects consider using coaching overlays. Review the Custom Object sample for the implementation details.
The plugin supports TrueDepth API. In case you didn't use it, your app will be rejected by Apple. Hence you need to remove any TrueDepth functionality by modifying your Podfile
file
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
... # Here are some configurations automatically generated by flutter
config.build_settings['OTHER_SWIFT_FLAGS'] = '-DDISABLE_TRUEDEPTH_API'
end
end
end
dispose
method on the ARKit controller.pubspec.yaml
dependency to:dependencies:
arkit_plugin:
git: git://github.com/olexale/arkit_flutter_plugin.git
If you find a bug or would like to request a new feature, just open an issue. Your contributions are always welcome!