mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 01:02:14 +08:00
prefer_const_constructors
This commit is contained in:
@ -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();
|
||||||
},
|
},
|
||||||
|
@ -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(),
|
||||||
|
@ -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);
|
||||||
},
|
},
|
||||||
|
@ -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();
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user