Streamit Laravel - Documentation

Streamit Flutter – Short Drama Add-on Install Guide

This add-on is installed in two steps only:

  1. Copy the short_drama folder into lib/.
  2. Register the module in lib/addon_registration.dart.

Prerequisites

  • The Laravel backend must already have the Short Drama Add-on Plugin installed and configured correctly.
  • The backend Base URL must match the value of DOMAIN_URL in lib/configs.dart.

Install Steps

1) Copy the Add-on Folder into lib/

Copy the add-on folder so the project contains:

  • YOUR_FLUTTER_APP/lib/short_drama/

That folder already includes all Short Drama module files.

2) Register the Add-on


Open YOUR_FLUTTER_APP/lib/addon_registration.dart and add the Short Drama registration call:

Register the Short Drama Add-on

import 'package:streamit_laravel/addon_bridge/short_drama/short_drama_bridge.dart';
import 'package:streamit_laravel/short_drama/short_drama_delegate_impl.dart';

class ShortDramaAddon {
  static void register() {
    ShortDramaBridge.register(ShortDramaDelegateImpl());
  }
}

Notes

  • In this codebase, the file is named lib/addon_registration.dart.
  • lib/main.dart already calls ShortDramaAddon.register() during application startup.
  • If the backend Base URL in lib/configs.dart does not match the Laravel environment, Short Drama will not load correctly.