Closed HiroyukiTamura closed 4 years ago
The key should not be associated on the class itself since all descendants of widget already has a key member.
BottomNavyBarItem({
Key key,
@required this.icon,
@required this.title,
this.activeColor = Colors.blue,
this.textAlign,
this.inactiveColor,
}) {
super(key:key);
...
I think GestureDetector of
ItemWidget
having Key is useful for integration testing.