Custom agora sdk flutter with open cv and tensorflow - ios

I want to use open cv and tensorflow for flutter agora sdk on ios, but I dont know how to import it. This is link repo https://github.com/AgoraIO/Flutter-SDK. Anyone can help me ?

Take a look at the example here: https://github.com/AgoraIO-Community/Agora-Flutter-Quickstart
To answer your question specifically, to import the SDK you need to add it to your pubspec.yml file in your Flutter project. This is where all the external packages are added.
dependencies:
flutter:
sdk: flutter
provider: 3.2.0
intl: ^0.15.8
agora_rtc_engine: 1.0.5
permission_handler: ^3.0.0
Depending on your development environment you will then have to prompt Flutter to get the dependencies by running flutter pub get or your IDE (Vscode, etc.) will detect the change and do it for you.

Related

Flutter: Unable to connect package geolocation

I can not connect the package to pubspect.yaml geolocation
dependencies:
http: ^0.12.0
flutter:
sdk: flutter
geolocation: ^0.2.1
Appear an error:
[logining] flutter packages get
Running "flutter packages get" in logining...
The current Dart SDK version is 2.1.0-dev.9.4.flutter-f9ebf21297.
Because logining depends on geolocation >=0.1.1 which requires SDK version <2.0.0, version solving failed.
pub get failed (1)
exit code 1
What should I do?
pub.dartlang.org prominently shows that this package is not compatible with Dart 2.
Flutter uses Dart 2 since about 5/2018, so you can't use this package with newer Flutter version.

Dart | Flutter Package: How to update a Packge Not allowing my development to make progress?

The Following Package has not been updated:
https://pub.dartlang.org/packages/tts
I am getting the same error.
Is there any way I can update or fix this issue on my side to continue https://pub.dartlang.org/packages/tts#-analysis-tab-
Running flutter packages pub upgrade failed with the following output:
ERR: The current Dart SDK version is 2.1.0-dev.1.0.flutter-69fce633b7.
Because tts requires SDK version >=1.8.0 <=2.0.0, version solving failed.
Add this to pubspec.yaml
dependency_overrides:
tts: ^1.0.1
until tts is updated to support Dart 2 final.

Facing flutter plugin issue

I'm trying to add flutter_svg: ^0.5.1 in my project pubspec.yaml and facing following issue.
depends on flutter_svg >=0.0.2 which requires Flutter SDK version >=0.3.6 <2.0.0, version solving failed.
You might be able to use something like this to override the dependency:
dependency_overrides:
flutter_svg: '0.5.1'
Open the flutter_console.bat (on window) or flutter_console.sh (on linux) file from your downloaded root flutter folder. This should bring up a terminal running Flutter locally.
Now type flutter upgrade
This should resolve your issue considering its a version compatibility issue.

Flutter dart dependency issue

I need to have a webview inside my context body, but not to cover the entire screen space as I have to display a listview below it.
I checked flutter_webview_plugin but it did not work
Getting the error :
That library is in a package that is not known. Maybe you forgot to mention it in your pubspec.yaml file?
dependencies:
flutter:
sdk: flutter
url_launcher: ^0.4.1
async_loader: "^0.1.1"
json_annotation: ^0.2.2
flutter_webview_plugin: "^0.1.5"
cupertino_icons: ^0.1.0
#url_launcher: ^3.0.0
dev_dependencies:
flutter_test:
sdk: flutter
json_serializable: ^0.4.0`
I have written below line in my dart file
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';
If you add a new package to your dependencies, then do a hot reload, you get the following misleading message:
Performing hot reload...
Your application could not be compiled, because its dependencies could not be
established.
The following Dart file:
/usr/local/google/home/ianh/dev/release/startup_namer/lib/main.dart
...refers, in an import, to the following library:
package:package:flutter_webview_plugin/flutter_webview_plugin.dart
That library is in a package that is not known. Maybe you forgot to mention it in
your pubspec.yaml file?
Try again after fixing the above error(s).
Kill your application and start it again. This might solve your issue.
For more references please visit this git hub discussion
Go to the build directory, which will be located at the top level of your app along with lib, ios, android, etc.
If a flutter_webview_plugin folder is not there, then you need to run flutter pub get to download the package.
If the folder is there, then it has already been downloaded. If that is the case and your IDE is still telling you that it does not recognize the package, then try restarting your IDE.

Getting error when Installing map_view 0.0.10 plugin in flutter application

I am trying to implement map_view plugin in my flutter application. Followed the instructions provided in the plugin documentation but failed to install the plugin.
I have added the dependency for map_view plugin to pubspec.yaml as below,
dependencies:
map_view: "^0.0.10"
but after running flutter packages get, I am getting this error
Package uri has no versions that match >=0.11.1 <0.12.0 derived from:
- map_view 0.0.10 depends on version ^0.11.1
pub get failed (1)
How can I solve this?
delete this from the pubspec.yaml and it works:
dev_dependencies:
flutter_test:
sdk: flutter
The plugin developer answers the question here.

Resources