新手求大佬指点
flutter吧
全部回复
仅看楼主
level 1
tjabcb 楼主
这是照着视频教程做的,说是类型不匹配,但是不知道怎么改,求大佬指点下
2022年08月01日 05点08分 1
level 1
tjabcb 楼主
Error: The argument type 'List<dynamic>' can't be assigned to the parameter type 'List<DropdownMenuItem<Object>>?'.
- 'List' is from 'dart:core'.
2022年08月01日 05点08分 2
List<Widget> 或 List<DropdownMenuItem> 加个类型试试
2022年08月01日 08点08分
@609355664 不行,还是有红线
2022年08月01日 11点08分
level 1
tjabcb 楼主
哪位老师知道说下拜
2022年08月02日 10点08分 3
level 1
把括号去掉
2022年08月03日 02点08分 4
不行哎
2022年08月03日 05点08分
level 1
tjabcb 楼主
括弧去掉也不行
2022年08月03日 05点08分 5
level 9
找个人远程就解决的事,问一天[哈哈]
2022年08月03日 10点08分 6
level 1
这是为了控制 DropdownMenuItem 的 value 的类型,防止item的value类型不一致。默认是 Object.
你可以指定类型,如 String,
2022年08月11日 02点08分 7
1