TW-4308 Add labels for several messages part 2 (#4431)

Add ChooseLabelModal, delegate, and update label UI components

Wire add-labels action across Thread, Search, and Dashboard
This commit is contained in:
Dat Dang
2026-04-15 14:25:37 +07:00
committed by GitHub
parent 77c2ef745f
commit 6fc88f780c
20 changed files with 560 additions and 83 deletions
@@ -6,18 +6,21 @@ import 'package:flutter/material.dart';
class DefaultCloseButtonWidget extends StatelessWidget {
final String iconClose;
final VoidCallback onTapActionCallback;
final bool isAlignTopEnd;
const DefaultCloseButtonWidget({
super.key,
required this.iconClose,
required this.onTapActionCallback,
this.isAlignTopEnd = true,
});
@override
Widget build(BuildContext context) {
return PositionedDirectional(
top: 4,
end: 4,
end: isAlignTopEnd ? 4 : null,
start: isAlignTopEnd ? null : 4,
child: TMailButtonWidget.fromIcon(
icon: iconClose,
iconSize: 24,