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