0 purchases
credits builder
Credits builder #
A simple package to generate a credit page of your dependencies. The best way to thank and appreciate the work of third party libraries.
Configuration #
Setup the dependency:
dependencies:
credits_builder: ^0.0.3 # android ios linux macos web windows
credits_builder:
outputFile: "assets/dependencies.json" # default value
copied to clipboard
Usage #
Generate the dependencies file #
By running this command you will create/update your dependencies file in the assets folder (assets/dependencies.json):
dart run credits_builder:start
copied to clipboard
Runtime side #
Basic way to retrieve dependencies at runtime:
Future<List<Dependency>> getDependencies(BuildContext context) =>
CreditsBuilder().config().get(context);
copied to clipboard
If you defined a dependency file name different from the default you can retrieve the information like this:
Future<List<Dependency>> getDependencies(BuildContext context) =>
CreditsBuilder()
.config(
path: 'assets/other_file_name.json',
)
.get(context);
copied to clipboard
If you want to preprocess the file information before using it (for example to deobfuscate the file with Stringcare) you can do it like this:
Future<List<Dependency>> getDependencies(BuildContext context) =>
CreditsBuilder()
.config(
process: (data) async => Stringcare().revealData(data) ?? data,
)
.get(context);
copied to clipboard
Sample #
Checkout this sample: https://landamessenger.com/credits
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.