Skip to content

Commit

Permalink
fix error on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
YuJuncen committed Aug 6, 2023
1 parent 419afcf commit a83199a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ PODS:
- GoogleUtilities/UserDefaults (~> 7.8)
- PromisesObjC (~> 2.1)
- Flutter (1.0.0)
- flutter_keyboard_visibility (0.0.1):
- Flutter
- FMDB (2.7.5):
- FMDB/standard (= 2.7.5)
- FMDB/standard (2.7.5)
Expand Down Expand Up @@ -113,6 +115,7 @@ DEPENDENCIES:
- firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`)
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
- Flutter (from `Flutter`)
- flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- sqflite (from `.symlinks/plugins/sqflite/ios`)
Expand Down Expand Up @@ -142,6 +145,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/firebase_core/ios"
Flutter:
:path: Flutter
flutter_keyboard_visibility:
:path: ".symlinks/plugins/flutter_keyboard_visibility/ios"
package_info_plus:
:path: ".symlinks/plugins/package_info_plus/ios"
path_provider_foundation:
Expand All @@ -165,6 +170,7 @@ SPEC CHECKSUMS:
FirebaseCoreInternal: 950500ad8a08963657f6d8c67b579740c06d6aa1
FirebaseInstallations: 7b99ef103f013624444c614397038219c45f8e63
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
GoogleAppMeasurement: 2d800fab85e7848b1e66a6f8ce5bca06c5aad892
GoogleUtilities: 9aa0ad5a7bc171f8bae016300bfcfa3fb8425749
Expand Down
7 changes: 4 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class MyApp extends StatelessWidget {

Widget menu(ChatRoomType type) {
return GetX<ChatRoomController>(builder: (controller) {
if (type == ChatRoomType.phone &&
controller.currentRoomIndex.value.value >= 0) {
if (controller.currentRoomIndex.value.value >= 0 &&
type == ChatRoomType.phone) {
return const SizedBox();
}
return Container(
Expand Down Expand Up @@ -97,7 +97,8 @@ class MyApp extends StatelessWidget {
Get.put(PromptController());
Get.put(ChatRoomController());
Get.put(tagsRepo);
Get.put(NewsController(settingsCtl.openAiKey, settingsCtl.gptModel, !prefetched));
Get.put(NewsController(
settingsCtl.openAiKey, settingsCtl.gptModel, !prefetched));
Get.put(TagCollector.create(repo: tagsRepo, sctl: settingsCtl));
prefetched = true;
final newsWinKey = GlobalKey();
Expand Down

0 comments on commit a83199a

Please sign in to comment.