more const for immutables (#10563)

This commit is contained in:
Alexandre Ardhuin
2017-06-08 22:04:18 +02:00
committed by GitHub
parent dfc7788c8e
commit 1eaefe1837
25 changed files with 38 additions and 38 deletions

View File

@@ -19,13 +19,13 @@ class PlatformView extends StatelessWidget {
theme: new ThemeData(
primarySwatch: Colors.grey,
),
home: new MyHomePage(title: 'Platform View'),
home: const MyHomePage(title: 'Platform View'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
const MyHomePage({Key key, this.title}) : super(key: key);
final String title;