fw_flutter_sdk 1.0.0-beta.1
fw_flutter_sdk: ^1.0.0-beta.1 copied to clipboard
Flutter plugin for Firework SDK, which supports integrating video feed, shopping, and live stream into Flutter Apps.
fw_flutter_sdk #
Firework Flutter SDK
Installation #
flutter pub add fw_flutter_sdk
Usage #
SDK Initialization #
import 'package:fw_flutter_sdk/fw_flutter_sdk.dart';
/// Optional: set listener for SDK init
FireworkSDK.getInstance().onSDKInit = (event) {
};
/// It is recommended to call the init method when the application starts,
/// e.g. in the initState method of your AppState. Init method has two optional params:
/// userId and adConfig.
FireworkSDK.getInstance().init();
Video Feed Integration #
import 'package:fw_flutter_sdk/fw_flutter_sdk.dart';
VideoFeed(
height: 200,
source: VideoFeedSource.discover,
);