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

Libraries

richtrex_image
An extended package of RichTrex package.