Assets Sync

style: very good analysis Powered by Mason License: MIT

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:


Install it:

flutter packages get


*❗ 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() {

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.

  assetPath: 'my_assets',
  fontPath: 'my_fonts',

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.


My new Flutter package