Apply new style modal profile UI for desktop
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
+5
-23
@@ -1,7 +1,5 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:core/presentation/views/button/tmail_button_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:tmail_ui_user/features/base/widget/email_address_with_copy_widget.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/widgets/copy_subaddress_widget.dart';
|
||||
|
||||
class ProfileLabelWidget extends StatelessWidget {
|
||||
@@ -21,26 +19,10 @@ class ProfileLabelWidget extends StatelessWidget {
|
||||
return Container(
|
||||
height: 40,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Flexible(
|
||||
child: SelectableText(
|
||||
label,
|
||||
style: ThemeUtils.textStyleM3BodyMedium,
|
||||
maxLines: 1,
|
||||
),
|
||||
),
|
||||
if (label.isNotEmpty)
|
||||
TMailButtonWidget.fromIcon(
|
||||
icon: copyLabelIcon,
|
||||
backgroundColor: Colors.transparent,
|
||||
iconSize: 20,
|
||||
iconColor: AppColor.textSecondary.withOpacity(0.48),
|
||||
padding: const EdgeInsets.all(5),
|
||||
onTapActionCallback: onCopyButtonAction,
|
||||
),
|
||||
],
|
||||
child: EmailAddressWithCopyWidget(
|
||||
label: label,
|
||||
copyLabelIcon: copyLabelIcon,
|
||||
onCopyButtonAction: onCopyButtonAction,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user