标签: flutter dart global-variables future
我想将String返回为全局变量...我不能使用它返回的动态路径:
winreg
答案 0 :(得分:0)
将您的功能签名更改为:
Future<String> openGallery(BuildContext context) async { //Added return type //Your code here... }
别忘了打电话给等待
String path = await openGallery(context);