Conform appbar buttons to Material (#8263)

Extend app bar left to edge, right to 4dp
Make leading button square and 56dp
Keep title at 72dp on Android according to Material
Renamed IconButton.size to .iconSize
IconButton minimum size expands to 48dp (#8264)
IconButton default constraints to 48. Can still stretch to infinity but can't be smaller than 48.
Ink splash for IconButton 40% bigger than the touch target to match Material
Tests
This commit is contained in:
xster
2017-02-22 11:32:22 -08:00
committed by GitHub
parent 52c7a123fc
commit 72fa281f12
7 changed files with 319 additions and 113 deletions

View File

@@ -45,10 +45,10 @@ class IconsDemoState extends State<IconsDemo> {
});
}
Widget buildIconButton(double size, IconData icon, bool enabled) {
Widget buildIconButton(double iconSize, IconData icon, bool enabled) {
return new IconButton(
icon: new Icon(icon),
size: size,
iconSize: iconSize,
color: iconColor,
tooltip: "${enabled ? 'Enabled' : 'Disabled'} icon button",
onPressed: enabled ? handleIconButtonPress : null

View File

@@ -41,7 +41,7 @@ class TooltipDemo extends StatelessWidget {
),
new Center(
child: new IconButton(
size: 48.0,
iconSize: 48.0,
icon: new Icon(Icons.call),
color: theme.iconTheme.color,
tooltip: 'Place a phone call',