prefer_const_constructors

This commit is contained in:
Vishesh Handa
2020-01-04 15:44:34 +01:00
parent 6c4b6e4789
commit dccd58c5f1
4 changed files with 4 additions and 4 deletions

View File

@ -101,7 +101,7 @@ class _FolderListingScreenState extends State<FolderListingScreen> {
} }
var backButton = IconButton( var backButton = IconButton(
icon: Icon(Icons.arrow_back), icon: const Icon(Icons.arrow_back),
onPressed: () { onPressed: () {
_folderTreeViewKey.currentState.resetSelection(); _folderTreeViewKey.currentState.resetSelection();
}, },

View File

@ -245,7 +245,7 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
if (Platform.isIOS) if (Platform.isIOS)
InkWell( InkWell(
child: Container( child: Container(
child: Icon(Icons.arrow_back, size: 32.0), child: const Icon(Icons.arrow_back, size: 32.0),
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
), ),
onTap: () => Navigator.of(context).pop(), onTap: () => Navigator.of(context).pop(),

View File

@ -125,7 +125,7 @@ class NoteSearch extends SearchDelegate<Note> {
@override @override
Widget buildLeading(BuildContext context) { Widget buildLeading(BuildContext context) {
return IconButton( return IconButton(
icon: Icon(Icons.arrow_back), icon: const Icon(Icons.arrow_back),
onPressed: () { onPressed: () {
close(context, null); close(context, null);
}, },

View File

@ -13,7 +13,7 @@ class SettingsScreen extends StatelessWidget {
appBar: AppBar( appBar: AppBar(
title: const Text('Settings'), title: const Text('Settings'),
leading: IconButton( leading: IconButton(
icon: Icon(Icons.arrow_back), icon: const Icon(Icons.arrow_back),
onPressed: () { onPressed: () {
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },