Wraps flutter_svg and the Flutter SDK image providers and picks the right widget based on the file extension

Overview

Hybrid Image

Wraps flutter_svg and the Flutter SDK image providers and picks the right widget based on the file extension

Features

As of right now it's possible to use three widgets:

  • HybridAssetImage
  • HybridNetworkImage
  • HybridFileImage

Memory image isn't supported as of right now, because it's not possible to distinct between svg images and regular images

Getting started

Since it's a wrapper for flutter_svg and the normal image constructors, there's not special usage to be mentioned. Pick the right widget for your use case whether it's network, asset or file.

Usage

final file = File('your/path.png');
HybridFileImage(
    file, 
    width: 50, 
    height: 50,
),
HybridAssetImage(
    'assets/my_image.svg', 
    width: 50, 
    height: 50,
),
HybridNetworkImage(
    'https://my.website.com/this_image.jpg', 
    width: 50, 
    height: 50,
),

Additional information

This package has been made for convenience, if you have any good additions feel free to open a pull request on Github :)

You might also like...

The Cat Vs Dog Scanner app will identify your dog's & cat's breed reliably in just a few seconds! Besides taking a picture, you can also record a video or upload an image from your gallery. The app is made with Flutter and TensorFlow Lite!

cat_vs_dog_detector A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you star

Nov 24, 2021

How to click, pick, crop and compress an image

flutter_click_pick_crop_compress A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to

Jan 18, 2022

Listview With ListView Builder Image-And Text

Listview With ListView Builder Image-And Text

listview_builder_with_image_and_text A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resource

Nov 6, 2021

Tried my hands first time on Machine Learning 🤖. It's an Face Detection app 😀which higlights the face of a person from image 🖼️.

Flutter Face Detector ML This is the source code for Flutter Face Detector ML. App Features Select Images From Gallery. Detecting All Faces In Image A

Apr 20, 2021

A wallpaper generator app which uses nasas' APOD api to get the background image

A wallpaper generator app which uses nasas' APOD api to get the background image

A wallpaper generator app which uses nasas' APOD api to get the background image and another api to get a quote by kanye. Sample Wallpaper - The backg

Nov 2, 2021

Flutter | Because a widget-driven development requires a widget-driven preview.

Flutter | Because a widget-driven development requires a widget-driven preview.

Create samples of your widgets and preview them in real time This project is experimental but safe to use as not code is added during compilation. It

Dec 27, 2022

A simple but powerful path-based navigation router with full web-browser and deeplink support.

nav_stack A simple but powerful path-based routing system, based on MaterialApp.router (Nav 2.0). It has browser / deeplink support and maintains a hi

Nov 28, 2022

A simple but powerful path-based navigation router with full web-browser and deeplink support.

nav_stack A simple but powerful path-based routing system, based on MaterialApp.router (Nav 2.0). It has browser / deeplink support and maintains a hi

Nov 28, 2022

This app it's a simple app to help you choose between alcool or gasoline based on the price of the gasoline and the price of the alcool.

This app it's a simple app to help you choose between alcool or gasoline based on the price of the gasoline and the price of the alcool.

This app it's a simple app to help you choose between alcool or gasoline based on the price of the gasoline and the price of the alcool. It's a simple app that uses a simple logo, two text fields and a button that calculate and show the best option.

Oct 3, 2021
Owner
Dutch Coding Company
Dutch Coding Company
Flutter-based mobile app displaying a list of daily curated content from top engineering blogs and articles. Backed by a GraphQL-based API written in Kotlin..

Flutter-based mobile app displaying a list of daily curated content from top engineering blogs and articles. Backed by a GraphQL-based API written in Kotlin..

Armel Soro 20 Dec 14, 2022
Flutter File Select and Upload to the Server with Progress Bar - Day 44

Flutter File Select and Upload - Day 44 class Afgprogrammer extends Flutter100DaysOfCode { video() { return { "title": "Flutter File Selec

Mohammad Rahmani 30 Dec 17, 2022
Flutter project file sturcture that can help me to create new project easily

flutter_project_arch A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you sta

Rafat Jamader Meraz 1 Oct 9, 2022
🗂 File Manager App built with 💙 with Flutter 🎯

?? File Manager App built with ?? with Flutter ??

martinoyovo 76 Dec 29, 2022
Concatenate file(s) to standard output.

dcat: Concatenate File(s) to Standard Output A cat command-line implementation in Dart, inspired by the Write command-line apps sample code. Synopsis

Erik C. Thauvin 0 Jan 28, 2022
A demonstration of a Flutter appbar and material design icons with Hydro-SDK

A demonstration of a Flutter appbar and material design icons with Hydro-SDK

Hydro-SDK 0 Jan 20, 2022
Cryptocurrency App with MVP Design Pattern to track all the coins data in realtime for android & iOS . Written in dart using Flutter SDK.

Flutter CryptoCurrency App (MVP) Cryptocurrency App with MVP design pattern to track all the coins data in realtime for android & iOS . Written in dar

Pawan Kumar 287 Dec 30, 2022
阿里云风险识别 Flutter HTTPS SDK

阿里云风险识别 https://help.aliyun.com/product/69981.html 使用步骤 初始化 AliyunSAF().init(ACCESS_KEY_ID, ACCESS_KEY_SECRET); 调用请求 final SAFResponse<SAFLoginProData

Alex Li 2 Jun 1, 2021
A demonstration of basic Flutter transition animations with Hydro-SDK

A demonstration of basic Flutter transition animations with Hydro-SDK

Hydro-SDK 2 Feb 21, 2022
Cooking app made by Flutter Sdk

Cooking app made by Flutter Sdk

Mohamed El Masry 4 Nov 13, 2022