[英]The argument type 'Widget Function(BuildContext)' cant be assigned to the parameter type 'Widget Function(BuildContext, Widget)' Error in Flutter
[英]How to create a widget for map function in flutter with buildContext
我想像這樣傳遞上下文:
users.map(buildMember, context).toList(),
但是沒有用
users.map((user) => buildMember(user, context)).toList(),
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.