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
Table of Contents
This project is distributed under the MIT License. See LICENSE.txt for more information.
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:
dependencies:
precache_image_builder: anyb) Use Dart Pub:
dart pub add precache_image_builderAdd the following code where you call your Splashscreen:
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');
};
}
- ✅ Precache Image Asset
- ✅ Precache Image Asset Network
- ✅ Precache Image SVG Asset
- ✅ Precache Image SVG Network
- 🚧 Documentation
🚧 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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Remember to include a tag, and to follow Conventional Commits and Semantic Versioning when uploading your commit and/or creating the issue.
Flutterando Community
Thank you to all the people who contributed to this project, whithout you this project would not be here today.
Built and maintained by Flutterando.