Add const

This commit is contained in:
Vishesh Handa
2020-05-13 01:17:34 +02:00
parent a5ad172790
commit 4375d0cf6d
4 changed files with 4 additions and 4 deletions

View File

@ -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,
),
),

View File

@ -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();

View File

@ -152,7 +152,7 @@ class CreateFolderButton extends StatelessWidget {
container.createFolder(notesFolder, folderName);
}
},
child: Icon(Icons.add),
child: const Icon(Icons.add),
);
}
}

View File

@ -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