Installation
Adding Library to Your Flutter Project
To include the truvideo_core_sdk
in your Flutter project, run the following command in your terminal:
flutter pub add truvideo_core_sdk
flutter pub add truvideo_camera_sdk
flutter pub add truvideo_media_sdk
flutter pub add truvideo_video_sdk
flutter pub add truvideo_image_sdk
This command will update your pubspec.yaml
file with a line like this:
dependencies:
truvideo_core_sdk: ^0.0.1
truvideo_camera_sdk: ^0.0.1
truvideo_media_sdk: ^0.0.1
truvideo_video_sdk: ^0.0.1
truvideo_image_sdk: ^0.0.1
After executing the above command, it will automatically run flutter pub get
. If your editor supports this, you can use the built-in command. Refer to your editor's documentation for more info.
Also checkout all the modules on pub.dev
.
pub.dev
.Importing the SDK
To utilize the SDK in your Dart code, include the import statement:
import 'package:truvideo_core_sdk/truvideo_core_sdk.dart';
import 'package:truvideo_core_sdk/truvideo_camera_sdk.dart';
import 'package:truvideo_core_sdk/truvideo_media_sdk.dart';
import 'package:truvideo_core_sdk/truvideo_video_sdk.dart';
import 'package:truvideo_core_sdk/truvideo_image_sdk.dart';
Last updated
Was this helpful?