mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-26 08:36:50 +08:00
prefer_const_constructors
This commit is contained in:
@ -101,7 +101,7 @@ class _FolderListingScreenState extends State<FolderListingScreen> {
|
||||
}
|
||||
|
||||
var backButton = IconButton(
|
||||
icon: Icon(Icons.arrow_back),
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
onPressed: () {
|
||||
_folderTreeViewKey.currentState.resetSelection();
|
||||
},
|
||||
|
@ -245,7 +245,7 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
|
||||
if (Platform.isIOS)
|
||||
InkWell(
|
||||
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),
|
||||
),
|
||||
onTap: () => Navigator.of(context).pop(),
|
||||
|
@ -125,7 +125,7 @@ class NoteSearch extends SearchDelegate<Note> {
|
||||
@override
|
||||
Widget buildLeading(BuildContext context) {
|
||||
return IconButton(
|
||||
icon: Icon(Icons.arrow_back),
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
onPressed: () {
|
||||
close(context, null);
|
||||
},
|
||||
|
@ -13,7 +13,7 @@ class SettingsScreen extends StatelessWidget {
|
||||
appBar: AppBar(
|
||||
title: const Text('Settings'),
|
||||
leading: IconButton(
|
||||
icon: Icon(Icons.arrow_back),
|
||||
icon: const Icon(Icons.arrow_back),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
|
Reference in New Issue
Block a user