Skip to content

Commit dccd58c

Browse files
committed
prefer_const_constructors
1 parent 6c4b6e4 commit dccd58c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/screens/folder_listing.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class _FolderListingScreenState extends State<FolderListingScreen> {
101101
}
102102

103103
var backButton = IconButton(
104-
icon: Icon(Icons.arrow_back),
104+
icon: const Icon(Icons.arrow_back),
105105
onPressed: () {
106106
_folderTreeViewKey.currentState.resetSelection();
107107
},

lib/screens/githostsetup_screens.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
245245
if (Platform.isIOS)
246246
InkWell(
247247
child: Container(
248-
child: Icon(Icons.arrow_back, size: 32.0),
248+
child: const Icon(Icons.arrow_back, size: 32.0),
249249
padding: const EdgeInsets.all(8.0),
250250
),
251251
onTap: () => Navigator.of(context).pop(),

lib/screens/journal_listing.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class NoteSearch extends SearchDelegate<Note> {
125125
@override
126126
Widget buildLeading(BuildContext context) {
127127
return IconButton(
128-
icon: Icon(Icons.arrow_back),
128+
icon: const Icon(Icons.arrow_back),
129129
onPressed: () {
130130
close(context, null);
131131
},

lib/screens/settings_screen.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class SettingsScreen extends StatelessWidget {
1313
appBar: AppBar(
1414
title: const Text('Settings'),
1515
leading: IconButton(
16-
icon: Icon(Icons.arrow_back),
16+
icon: const Icon(Icons.arrow_back),
1717
onPressed: () {
1818
Navigator.of(context).pop();
1919
},

0 commit comments

Comments
 (0)