Refactor IconThemeData.fallback (#7490)
Now IconThemeData.fallback is a factory constructor and IconThemeData.of() does the work of computing the fallback for its clients. Also, add tests for ImageIcon and ListItems.
This commit is contained in:
@@ -66,7 +66,7 @@ class NavigationIconView {
|
||||
class CustomIcon extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final IconThemeData iconTheme = IconTheme.of(context).fallback();
|
||||
final IconThemeData iconTheme = IconTheme.of(context);
|
||||
return new Container(
|
||||
margin: const EdgeInsets.all(4.0),
|
||||
width: iconTheme.size - 8.0,
|
||||
|
||||
Reference in New Issue
Block a user