• Ian Hickson's avatar
    ImageIcon (#4649) · e502e9c8
    Ian Hickson authored
    Anywhere that accepted IconData now accepts either an Icon or an
    ImageIcon.
    
    Places that used to take an IconData in an `icon` argument, notably
    IconButton and DrawerItem, now take a Widget in that slot. You can wrap
    the value that used to be passed in in an Icon constructor to get the
    same result.
    
    Icon itself now takes the icon as a positional argument, for brevity.
    
    ThemeData now has an iconTheme as well as a primaryIconTheme, the same
    way it has had a textTheme and primaryTextTheme for a while.
    
    IconTheme.of() always returns a value now (though that value itself may
    have nulls in it). It defaults to the ThemeData.iconTheme.
    
    IconThemeData.fallback() is a new method that returns an icon theme data
    structure with all fields filled in.
    
    IconTheme.merge() is a new constructor that takes a context and creates
    a widget that mixes in the new values with the inherited values.
    
    Most places that introduced an IconTheme widget now use IconTheme.merge.
    
    IconThemeData.merge and IconThemeData.copyWith act in a way analogous to
    the similarly-named members of TextStyle.
    
    ImageIcon is introduced. It acts like Icon but takes an ImageProvider
    instead of an IconData.
    
    Also: Fix the analyzer to actually check the stocks app.
    e502e9c8
Name
Last commit
Last update
..
android Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
card_collection.dart Loading commit data...
drag_and_drop.dart Loading commit data...
fitness_demo.dart Loading commit data...
flutter.yaml Loading commit data...
mozart.dart Loading commit data...
overlay_geometry.dart Loading commit data...
pageable_list.dart Loading commit data...
pubspec.yaml Loading commit data...
raw_keyboard.dart Loading commit data...
weather_demo.dart Loading commit data...