Last updated:
0 purchases
assets sync
Assets Sync #
AssetsSync is a utility package for flutter that helps developers manage the synchronization of assets in their projects. It provides a simple and intuitive interface for adding and updating assets in the pubspec.yaml file of a Flutter project. Whether it's fonts, images, or other types of assets, AssetsSync makes it easy to keep your project organized and up-to-date. Plus, with its singleton implementation, you can easily use it in any part of your project without the need to create multiple instances. So, if you want to make asset management in your Flutter projects a breeze, give AssetsSync a try!
Installation 💻 #
*❗ To use AssetsSync in your Flutter project, add assets_sync as a dependency in your pubspec.yaml file.
Add assets_sync to your pubspec.yaml:
dependencies:
assets_sync:
copied to clipboard
Install it:
flutter packages get
copied to clipboard
Usage #
*❗ To sync your assets and fonts with your Flutter project, import the assets_sync package and call the sync method on the AssetsSync class.
import 'package:assets_sync/assets_sync.dart';
void main() {
AssetsSync.instance.sync();
}
copied to clipboard
By default, AssetsSync will look for your assets and fonts in the assets and fonts directories, respectively. If your assets and fonts are stored in a different directory, you can specify the directory path as an argument when calling the sync method.
AssetsSync.instance.sync(
assetPath: 'my_assets',
fontPath: 'my_fonts',
);
copied to clipboard
AssetsSync will update your pubspec.yaml file with the assets and fonts found in the specified directories. It will also handle duplicates and only add unique assets and fonts to the file.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.