Last updated:
0 purchases
image size getter flutter
image_size_getter_flutter #
A plugin for image_size_getter.
To support flutter.
Example #
FlutterAssetImageInput #
import 'package:image_size_getter/image_size_getter.dart';
import 'package:image_size_getter_flutter/image_size_getter_flutter.dart';
Future<Size> getAsset(String assetKey) async {
final input = FlutterAssetImageInput(assetKey);
final size = await ImageSizeGetter.getSizeAsync(input);
print('size: $size');
return size;
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.