AOSSIE-Org / AOSSIE-Org/Resonate

Missing FriendsController injection in ProfileScreen

オープン
#792 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Dart
スター
344
フォーク
350
PR マージ指標
30日以内にマージされた PR はありません

説明

### 🐛 Describe the bug

Location

lib/views/screens/profile_screen.dart
lib/bindings/profile_binding.dart

Description

Opening the Profile screen causes a runtime error:

"FriendsController" not found. You need to call "Get.put(FriendsController())"
Cause

FriendsController is used in ProfileScreen via Get.find(), but it is not registered in ProfileBinding.

Fix

Added controller registration in ProfileBinding:

Get.lazyPut(() => FriendsController());
Result
Profile screen loads correctly
No runtime crash
Proper use of GetX dependency injection

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。