mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Add const
This commit is contained in:
@ -394,7 +394,7 @@ class AddItemButton extends StatelessWidget {
|
||||
width: 24.0,
|
||||
child: IconButton(
|
||||
padding: const EdgeInsets.fromLTRB(0.0, 0.0, 0.0, 0.0),
|
||||
icon: Icon(Icons.add),
|
||||
icon: const Icon(Icons.add),
|
||||
onPressed: onPressed,
|
||||
),
|
||||
),
|
||||
|
@ -240,7 +240,7 @@ Widget _buildBottomMenuSheet(
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.edit),
|
||||
leading: const Icon(Icons.edit),
|
||||
title: Text(tr('editors.common.editFileName')),
|
||||
onTap: () {
|
||||
var note = editorState.getNote();
|
||||
|
@ -152,7 +152,7 @@ class CreateFolderButton extends StatelessWidget {
|
||||
container.createFolder(notesFolder, folderName);
|
||||
}
|
||||
},
|
||||
child: Icon(Icons.add),
|
||||
child: const Icon(Icons.add),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ class _FolderViewState extends State<FolderView> {
|
||||
var createButton = FloatingActionButton(
|
||||
key: const ValueKey("FAB"),
|
||||
onPressed: () => _newPost(context, defaultEditor),
|
||||
child: Icon(Icons.add),
|
||||
child: const Icon(Icons.add),
|
||||
);
|
||||
|
||||
// If this is a Virtual folder which doesn't overwrite the FS folder's name
|
||||
|
Reference in New Issue
Block a user