Flutter Bundler

Flutter Bundler is a library to read generated bundle using Bundler in Flutter.

Usage

import 'package:flutter_bundler/flutter_bundler.dart';
Bundler.initFromByteData("16CharSecureKey!",await rootBundle.load('bundle/bundle.bundle'));

or

import 'package:flutter_bundler/flutter_bundler.dart';
Bundler.init("16CharSecureKey!",File("bundle/bundle.bundle"));

after initializing the bundle you can use it like this:

Bundler.instance.readAssetBytesSync("assets/images/profile.png");

it also supports async methods:

await Bundler.instance.readAssetBytes("assets/images/profile.png");

and virtual files like this:

await Bundler.instance.readAssetFile("assets/images/profile.png");

Libraries

flutter_bundler