TF-1981 Add SpamReportBannerLabel widget
(cherry picked from commit 3fb7ebfeebd277dd8318c248d48ce31bc46807dc)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class SpamReportBannerLabelStyles {
|
||||||
|
static const double iconSize = 24;
|
||||||
|
static const double labelTextSize = 16;
|
||||||
|
static const double space = 8;
|
||||||
|
static const Color labelTextColor = AppColor.colorSpamReportBannerLabelColor;
|
||||||
|
}
|
||||||
+38
@@ -0,0 +1,38 @@
|
|||||||
|
|
||||||
|
import 'package:core/presentation/resources/image_paths.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
|
import 'package:get/get.dart';
|
||||||
|
import 'package:tmail_ui_user/features/thread/presentation/styles/spam_banner/spam_report_banner_label_styles.dart';
|
||||||
|
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||||
|
|
||||||
|
class SpamReportBannerLabelWidget extends StatelessWidget {
|
||||||
|
|
||||||
|
final String countSpamEmailsAsString;
|
||||||
|
|
||||||
|
const SpamReportBannerLabelWidget({super.key, required this.countSpamEmailsAsString});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
final imagePaths = Get.find<ImagePaths>();
|
||||||
|
return Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
SvgPicture.asset(
|
||||||
|
imagePaths.icInfoCircleOutline,
|
||||||
|
width: SpamReportBannerLabelStyles.iconSize,
|
||||||
|
height: SpamReportBannerLabelStyles.iconSize
|
||||||
|
),
|
||||||
|
const SizedBox(width: SpamReportBannerLabelStyles.space),
|
||||||
|
Text(
|
||||||
|
AppLocalizations.of(context).countNewSpamEmails(countSpamEmailsAsString),
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: SpamReportBannerLabelStyles.labelTextSize,
|
||||||
|
color: SpamReportBannerLabelStyles.labelTextColor,
|
||||||
|
fontWeight: FontWeight.w500
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user