new feature: add loading spin or wait spin
Hi, congratulations on the plugin. I saw that there are some seconds until the file image is returned in the onFile function and the button is still active, could you put an option to disable the button or put a spin while the image is being processed? thanks
Thanks. Disabled button when awating process file?
yes. It would be best to stay while you are processing the save file function, as I have to send the file to the server in async mode. When I use Async, its application crashes.
You add async this function?
onFile: (file) {
photos.add(file);
Navigator.pop(context);
setState(() {});
},
You can create new function and call on onFile(file)
onFile: (file){
yourFunction(File);
},
Future<void> yourFunction(file) async{
final response = await yourDatabase.push(file);
}