richtrex_image 1.2.0
richtrex_image: ^1.2.0 copied to clipboard
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 #
Install #
Add this line to your pubspec.yaml.
dependencies:
richtrex_image: ^1.2.0
copied to clipboard
Usage #
First, import the package.
import 'package:richtrex_image/richtrex_image.dart';
copied to clipboard
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),
);
copied to clipboard
or if you're using image from memory, try this
RichTrexImage.memory(
"data:image/svg+xml;...",
size: const Size(100.0, 100.0),
);
copied to clipboard
and try this this one from file path
RichTrexImage.file(
File("/image/logo.png").path,
size: const Size(100.0, 100.0),
);
copied to clipboard
last one using image from asset
RichTrexImage.asset(
"assets/logo.png",
size: const Size(100.0, 100.0),
);
copied to clipboard