fixup! TF-4308 Add NoLabelYetWidget for choose label modal

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2026-04-17 09:25:36 +07:00
committed by Dat H. Pham
parent 35b46ff21b
commit 061793846e
3 changed files with 15 additions and 16 deletions
@@ -37,8 +37,8 @@ class _ChooseLabelModalState extends State<ChooseLabelModal> {
return LayoutBuilder(builder: (_, constraints) {
final currentScreenWidth = constraints.maxWidth;
final currentScreenHeight = constraints.maxHeight;
double height = math.min(currentScreenHeight - 100, 645);
double width = math.min(currentScreenWidth - 32, 536);
final height = math.max(0.0, math.min(currentScreenHeight - 100, 645.0));
final width = math.max(0.0, math.min(currentScreenWidth - 32, 536.0));
Widget bodyWidget = Container(
decoration: BoxDecoration(