assets_sync 0.0.1+2 copy "assets_sync: ^0.0.1+2" to clipboard
assets_sync: ^0.0.1+2 copied to clipboard

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 [...]

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:

dependencies:
  assets_sync:

Install it:

flutter packages get

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();
}

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',
  );

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.

5
likes
130
pub points
27%
popularity

Publisher

verified publisherflutterbytes.io

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

file_system, flutter, path, path_provider

More

Packages that depend on assets_sync