Use @required for onPressed and onChanged (#4534)
We now use the `@required` annotation to encourage developers to explicitly set onPressed and onChanged callbacks to null when that would disable the widget. Fixes #287
This commit is contained in:
@@ -52,7 +52,8 @@ class AdaptedGridItem extends StatelessWidget {
|
||||
child: new Text(name)
|
||||
),
|
||||
new IconButton(
|
||||
icon: Icons.more_vert
|
||||
icon: Icons.more_vert,
|
||||
onPressed: null
|
||||
)
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user