Last updated:
0 purchases
select image
Usage #
Member Variables Code #
File mySelectedImage;
copied to clipboard
View Code #
mySelectedImage != null
? Image.file(mySelectedImage!)
: IconButton(
icon: const Icon(Icons.send),
onPressed: () {
chooseImage(context).then((value) {
mySelectedImage = value;
setState(() {});
});
},
),
copied to clipboard
OnPress Code #
chooseImage(context).then((value) {
mySelectedImage = value;
setState(() {});
});
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.