An extended package of RichTrex
package which is used for user to resize image.
Add this line to your pubspec.yaml.
dependencies:
richtrex_image: ^1.2.0
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),
);