UniversalPicture
is a versatile Flutter library for rendering images regardless of their format or source. This widget simplifies the process of loading and displaying images in Flutter applications, supporting a variety of sources such as local files, network URLs, in-memory data, and SVGs.
- Ease of Use: Use a single widget to handle multiple types of image sources.
- Versatile Support: Compatible with local, network, in-memory images, and SVGs.
- Customizable: Supports parameters like
width
,height
,fit
, andcolor
for further customization.
To use UniversalPicture
in your Flutter project, follow these steps:
-
Add the dependency to your
pubspec.yaml
file:dependencies: universal_picture: ^0.0.1
-
Install the library by running:
flutter pub get
Here's a basic example of how to use UniversalPicture
:
import 'package:universal_picture/universal_picture.dart';
UniversalPicture(
source: 'path/to/your/image.png', // Can be a File, Uint8List, URL, or an asset
width: 100,
height: 100,
fit: BoxFit.cover,
color: Colors.blue,
)
Contributions to UniversalPicture
are welcome. If you have ideas for improvement or have found a bug, feel free to open an issue or a pull request.
This project is licensed under the MIT License
- Customization: Feel free to add or modify sections according to the needs of your project. For instance, if you have a 'Frequently Asked Questions' or 'Roadmap' section, include them.
- Contributions: If you have specific guidelines for contributions, be sure to detail them in the respective section.
- Images and Detailed Examples: Adding screenshots or more detailed code examples can be helpful for users of your library.
This README provides a basic and effective starting point. Remember to keep it updated as your project evolves.