Skip to content

Flutterando/precache_image_builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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


Version Pub Points Flutterando Analysis

Pub Publisher



Table of Contents
  1. Getting Started
  2. How to Use
  3. Features
  4. Contributing
  5. Contact
  6. Acknowledgements


This project is distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

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:

  dependencies:
    precache_image_builder: any

b) Use Dart Pub:

  dart pub add precache_image_builder

How to Use

Add 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');
    };
}

(back to top)

Features

  • ✅ Precache Image Asset
  • ✅ Precache Image Asset Network
  • ✅ Precache Image SVG Asset
  • ✅ Precache Image SVG Network
  • 🚧 Documentation

(back to top)

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 and Semantic Versioning when uploading your commit and/or creating the issue.

(back to top)

Contact

Flutterando Community

(back to top)

Acknowledgements

Thank you to all the people who contributed to this project, whithout you this project would not be here today.


(back to top)

Maintaned by


Built and maintained by Flutterando.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages