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