fix(mobile-next): 添加同事页工号提示与发送按钮改回独立 Obx
仅改 add_colleague_page.dart:directoryHint 与 sending 各用独立 Obx 追踪,去掉嵌套 Builder。 Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
co-authored by
Cursor
multica-agent
parent
26d070fbaf
commit
e355b89204
@@ -130,7 +130,7 @@ class AddColleaguePage extends StatelessWidget {
|
|||||||
logic.lookupDirectory();
|
logic.lookupDirectory();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
Builder(builder: (_) {
|
Obx(() {
|
||||||
final hint = logic.directoryHint.value;
|
final hint = logic.directoryHint.value;
|
||||||
if (hint == null) return const SizedBox.shrink();
|
if (hint == null) return const SizedBox.shrink();
|
||||||
return Padding(
|
return Padding(
|
||||||
@@ -153,7 +153,7 @@ class AddColleaguePage extends StatelessWidget {
|
|||||||
enabled: !logic.sending.value,
|
enabled: !logic.sending.value,
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
Builder(builder: (_) {
|
Obx(() {
|
||||||
final busy = logic.sending.value;
|
final busy = logic.sending.value;
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
|
|||||||
Reference in New Issue
Block a user