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:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user