TF-248 Update AppBar of ThreadView

This commit is contained in:
dab246
2022-02-08 18:00:56 +07:00
committed by Dat H. Pham
parent 74131407f2
commit 4a49ce8150
9 changed files with 67 additions and 94 deletions
@@ -1,6 +1,6 @@
extension CapitalizeExtension on String {
String get inCaps => this.length > 0 ?'${this[0].toUpperCase()}${this.substring(1)}':'';
String get inCaps => this.length > 0 ?'${this[0].toUpperCase()}${this.toLowerCase().substring(1)}':'';
String get allInCaps => this.toUpperCase();
String get capitalizeFirstEach => this.replaceAll(RegExp(' +'), ' ').split(" ").map((str) => str.inCaps).join(" ");
}
@@ -64,6 +64,7 @@ extension AppColor on Color {
static const lineItemListColor = Color(0xFF99A2AD);
static const colorNameEmail = Color(0xFF000000);
static const colorContentEmail = Color(0xFF6D7885);
static const colorTextButton = Color(0xFF007AFF);
static const mapGradientColor = [
[Color(0xFF21D4FD), Color(0xFFB721FF)],
@@ -47,6 +47,8 @@ class ImagePaths {
String get icUnStar => _getImagePath('ic_unstar.svg');
String get icAttachment => _getImagePath('ic_attachment.svg');
String get icChevron => _getImagePath('ic_chevron.svg');
String get icChevronDown => _getImagePath('ic_chevron_down.svg');
String get icFilter => _getImagePath('ic_filter.svg');
String _getImagePath(String imageName) {
return AssetsPaths.images + imageName;