Last updated:
0 purchases
flutter bundler
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'));
copied to clipboard
or
import 'package:flutter_bundler/flutter_bundler.dart';
Bundler.init("16CharSecureKey!",File("bundle/bundle.bundle"));
copied to clipboard
after initializing the bundle you can use it like this:
Bundler.instance.readAssetBytesSync("assets/images/profile.png");
copied to clipboard
it also supports async methods:
await Bundler.instance.readAssetBytes("assets/images/profile.png");
copied to clipboard
and virtual files like this:
await Bundler.instance.readAssetFile("assets/images/profile.png");
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.