richtrex_image 1.2.0 copy "richtrex_image: ^1.2.0" to clipboard
richtrex_image: ^1.2.0 copied to clipboard

discontinuedreplaced by: auto_size_widget

An extended package of RichTrex package which is enabling user to resize image widget.

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 #

2
likes
150
pub points
0%
popularity

Publisher

unverified uploader

An extended package of RichTrex package which is enabling user to resize image widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_svg, provider

More

Packages that depend on richtrex_image