TF-2179 Add SelectionWebAppBarThread widget/style

(cherry picked from commit a8fbb1d84deca9ed641b762e37893e626e8a4eb6)
This commit is contained in:
dab246
2023-09-29 11:40:58 +07:00
committed by Dat H. Pham
parent 6bf67c7bb4
commit aa02516451
2 changed files with 184 additions and 0 deletions
@@ -0,0 +1,28 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:flutter/material.dart';
class SelectionWebAppBarThreadWidgetStyle {
static const double minHeight = 56;
static const double iconSize = 20;
static const double mediumIconSize = 22;
static const double closeButtonIconSize = 28;
static const Color backgroundColor = Colors.white;
static const Color cancelButtonColor = AppColor.primaryColor;
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(vertical: 8, horizontal: 16);
static const EdgeInsetsGeometry closeButtonPadding = EdgeInsets.all(3);
static const TextStyle emailCounterStyle = TextStyle(
fontSize: 17,
fontWeight: FontWeight.w500,
color: AppColor.primaryColor
);
static Color getDeleteButtonColor(bool deletePermanentlyValid) {
return deletePermanentlyValid
? AppColor.colorDeletePermanentlyButton
: AppColor.primaryColor;
}
}