Change the default MaterialType to canvas

Canvas is by far the most popular type of material by call site (and makes for
a faster default because it doesn't have a RRect clip).
This commit is contained in:
Adam Barth
2015-10-12 09:36:47 -07:00
parent f9a7ed047d
commit 09665c0d7f
13 changed files with 3 additions and 15 deletions

View File

@@ -61,7 +61,6 @@ class ScaleAppState extends State<ScaleApp> {
toolBar: new ToolBar(
center: new Text('Scale Demo')),
body: new Material(
type: MaterialType.canvas,
child: new GestureDetector(
onScaleStart: _handleScaleStart,
onScaleUpdate: _handleScaleUpdate,

View File

@@ -65,7 +65,6 @@ class SectorApp extends MaterialApp {
Widget buildBody() {
return new Material(
type: MaterialType.canvas,
child: new Column([
new Container(
padding: new EdgeDims.symmetric(horizontal: 8.0, vertical: 25.0),