Skip to content

An extended package of RichTrex package which is used as decoded image, enabling user to resize the image widget.

License

Notifications You must be signed in to change notification settings

Nialixus/richtrex_image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RichTrex: Image


An extended package of RichTrex package which is used for user to resize image.

Preview

screen-capture

Install

Add this line to your pubspec.yaml.

dependencies:
  richtrex_image: ^1.2.0

Usage

First, import the package.

import 'package:richtrex_image/richtrex_image.dart';

And if you want to set the image source from internet, use this.

RichTrexImage.network(
  "https://your.image/url.png",
  size: const Size(100.0, 100.0),
);

or if you're using image from memory, try this

RichTrexImage.memory(
  "data:image/svg+xml;...",
  size: const Size(100.0, 100.0),
);

and try this this one from file path

RichTrexImage.file(
  File("/image/logo.png").path,
  size: const Size(100.0, 100.0),
);

last one using image from asset

RichTrexImage.asset(
  "assets/logo.png",
  size: const Size(100.0, 100.0),
);

Sample

About

An extended package of RichTrex package which is used as decoded image, enabling user to resize the image widget.

Resources

License

Stars

Watchers

Forks

Languages