TF-3478 Use tag to inject composer binding

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-02-11 21:48:52 +07:00
committed by Dat H. Pham
parent 332e2af683
commit 42b5711769
3 changed files with 238 additions and 111 deletions
@@ -28,7 +28,12 @@ import 'package:tmail_ui_user/features/composer/presentation/widgets/web/toolbar
class ComposerView extends GetWidget<ComposerController> {
const ComposerView({Key? key}) : super(key: key);
final String? composerId;
const ComposerView({super.key, this.composerId});
@override
ComposerController get controller => Get.find<ComposerController>(tag: composerId);
@override
Widget build(BuildContext context) {