TF-3640 Increase composer size when there is only one composer

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-04-10 12:27:20 +07:00
committed by Dat H. Pham
parent 746d4b75cc
commit 821a1ce951
@@ -50,8 +50,12 @@ class DesktopResponsiveContainerView extends StatelessWidget {
clipBehavior: Clip.antiAlias,
child: Container(
color: DesktopResponsiveContainerViewStyle.backgroundColor,
width: DesktopResponsiveContainerViewStyle.normalScreenMaxWidth,
height: DesktopResponsiveContainerViewStyle.normalScreenMaxHeight,
width: composerManager.composerIdsQueue.length > 1
? DesktopResponsiveContainerViewStyle.normalScreenMaxWidth
: responsiveUtils.getSizeScreenWidth(context) * 0.5,
height: composerManager.composerIdsQueue.length > 1
? DesktopResponsiveContainerViewStyle.normalScreenMaxHeight
: responsiveUtils.getSizeScreenHeight(context) * 0.75,
child: LayoutBuilder(builder: (context, constraints) =>
PointerInterceptor(
child: childBuilder.call(context, constraints),