mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
Add a comment on the HomeScreen
It took me some time to figure out why I had written it this way.
This commit is contained in:
@ -25,6 +25,9 @@ class _HomeScreenState extends State<HomeScreen> {
|
|||||||
Future.delayed(Duration.zero, _initFolder);
|
Future.delayed(Duration.zero, _initFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This is nto done inside build as we want to avoid rebuilding the
|
||||||
|
// FlattenedNotesFolder as much as possible. It's very expensive, since
|
||||||
|
// it sorts all the notes.
|
||||||
void _initFolder() async {
|
void _initFolder() async {
|
||||||
if (!mounted) return;
|
if (!mounted) return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user