https://github.com/flutterando/precache_image_builder
https://github.com/flutterando/precache_image_builder
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/flutterando/precache_image_builder
- Owner: Flutterando
- License: other
- Created: 2023-01-17T14:03:36.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-17T15:01:36.000Z (about 3 years ago)
- Last Synced: 2025-01-25T02:42:21.769Z (about 1 year ago)
- Language: Dart
- Size: 9.77 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Precache Image Builder
This project is meant to be used to facilitate the use of pre cache on your apps, using a simple builder without any other complications.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
[](https://pub.dev/packages/precache_image_builder)
[](https://pub.dev/packages/precache_image_builder/score)
[](https://pub.dev/packages/flutterando_analysis/)
[](https://pub.dev/publishers/flutterando.com.br/packages)
---
Table of Contents
---
This project is distributed under the MIT License. See `LICENSE.txt` for more information.
## Getting Started
To get precache_image_builder in your project follow either of the instructions below:
a) Add precache_image_builder as a dependency in your Pubspec.yaml:
```yaml
dependencies:
precache_image_builder: any
```
b) Use Dart Pub:
```sh
dart pub add precache_image_builder
```
## How to Use
Add the following code where you call your Splashscreen:
```dart
import 'package:precache_image_builder/precache_image_builder.dart';
void initState(){
PrecacheImageBuilder()
.addImageAsset('mock-asset-name')
.addImageNetwork('mock-image-url')
.addSvgAsset('mock-svg-asset-name')
.addSvgNetwork('mock-svg-url')
.precache(context)
.then(_){
Navigator.of(context).pushNamed('/other-page');
};
}
```
## Features
- ✅ Precache Image Asset
- ✅ Precache Image Asset Network
- ✅ Precache Image SVG Asset
- ✅ Precache Image SVG Network
- 🚧 Documentation
## Contributing
🚧 [Contributing Guidelines]() - _Work in Progress_ 🚧
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the appropriate tag.
Don't forget to give the project a star! Thanks again!
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
Remember to include a tag, and to follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) and [Semantic Versioning](https://semver.org/) when uploading your commit and/or creating the issue.
## Contact
Flutterando Community
- [Discord](https://discord.gg/qNBDHNARja)
- [Telegram](https://t.me/flutterando)
- [Website](https://www.flutterando.com.br)
- [Youtube Channel](https://www.youtube.com.br/flutterando)
- [Other useful links](https://linktr.ee/flutterando)
## Acknowledgements
Thank you to all the people who contributed to this project, whithout you this project would not be here today.
## Maintaned by
Built and maintained by Flutterando.