diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-06-04 13:57:36 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-06-04 13:57:36 +0530 |
| commit | c50386437f01bb0177d352c7c7565d86742fa445 (patch) | |
| tree | b8dbd26174b536283509230ae66467d8cf0580f9 | |
| parent | d2a4564cfbd744232235e2c828657b616e19ba5a (diff) | |
| download | daft-launcher-c50386437f01bb0177d352c7c7565d86742fa445.tar.gz daft-launcher-c50386437f01bb0177d352c7c7565d86742fa445.zip | |
Some cleanup
| -rw-r--r-- | TODO.md | 1 | ||||
| -rw-r--r-- | lib/data/config.dart | 2 | ||||
| -rw-r--r-- | lib/data/favorites.dart | 2 | ||||
| -rw-r--r-- | lib/main.dart | 4 |
4 files changed, 5 insertions, 4 deletions
@@ -9,6 +9,7 @@ ## Issues - [ ] Fix scroll/fling conflict (snap) + - [ ] Uninstall from favorites doesnt update list - [X] Make keyboard close on swipe - [X] Fix uninstall action issue - [X] Disable back button diff --git a/lib/data/config.dart b/lib/data/config.dart index cef3eb4..80e84d5 100644 --- a/lib/data/config.dart +++ b/lib/data/config.dart @@ -22,7 +22,7 @@ Future<Config> getConfig() async { ); } -void initConfig() async { +void refreshConfig() async { Config c = await getConfig(); config_$.add(c); } diff --git a/lib/data/favorites.dart b/lib/data/favorites.dart index c09d14c..ba78d44 100644 --- a/lib/data/favorites.dart +++ b/lib/data/favorites.dart @@ -26,7 +26,7 @@ Future<List<Application>> getFavorites() async { return result.where((a) => a != null).map((a) => a as Application).toList() as List<Application>; } -void initFavorites() async { +void refreshFavorites() async { List<Application> fs = await getFavorites(); favorites_$.add(fs); } diff --git a/lib/main.dart b/lib/main.dart index 8bff71f..a8cd8ab 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -34,9 +34,9 @@ class MyAppState extends StreamState<MyApp> { void initState() { super.initState(); initStateValue(config); - initConfig(); + refreshConfig(); initStateValue(favoriteApps); - initFavorites(); + refreshFavorites(); initStateValue(dateTime); } |
