mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 01:45:55 +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);
|
||||
}
|
||||
|
||||
// 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 {
|
||||
if (!mounted) return;
|
||||
|
||||
|
Reference in New Issue
Block a user