TF-467 Apply new UI for mailbox mobile

This commit is contained in:
dab246
2022-04-08 12:43:45 +07:00
committed by Dat H. Pham
parent 3eb5f31dcd
commit 7b5a2dd820
22 changed files with 1058 additions and 435 deletions
@@ -3,7 +3,7 @@ import 'dart:ui' show Color;
import 'package:flutter/material.dart';
extension AppColor on Color {
static const primaryColor = Color(0xFF837DFF);
static const primaryColor = Color(0xFF007AFF);
static const primaryDarkColor = Color(0xFF1C1C1C);
static const primaryLightColor = Color(0xFFFFFFFF);
static const baseTextColor = Color(0xFF7E869B);
@@ -69,7 +69,8 @@ extension AppColor on Color {
static const colorBgSearchBar = Color(0xFFEBEDF0);
static const colorShadowBgContentEmail = Color(0x14000000);
static const colorDividerMailbox = Color(0xFF99A2AD);
static const colorArrowUserMailbox = Color(0xFFB8C1CC);
static const colorCollapseMailbox = Color(0xFFB8C1CC);
static const colorExpandMailbox = Color(0xFF007AFF);
static const colorBgMailbox = Color(0xFFF7F7F7);
static const colorFilterMessageDisabled = Color(0xFF99A2AD);
static const colorFilterMessageEnabled = Color(0xFF007AFF);
@@ -2,11 +2,10 @@ import 'package:core/presentation/resources/assets_paths.dart';
class ImagePaths {
String get icSearch => _getImagePath('ic_search.svg');
String get icNextArrow => _getImagePath('ic_next_arrow.svg');
String get icMailboxAllMail => _getImagePath('ic_mailbox_allmail.svg');
String get icMailboxTemplate => _getImagePath('ic_mailbox_template.svg');
String get icFolderArrow => _getImagePath('ic_folder_arrow.svg');
String get icExpandFolder => _getImagePath('ic_expand_folder.svg');
String get icCollapseFolder => _getImagePath('ic_collapse_folder.svg');
String get icBack => _getImagePath('ic_back.svg');
String get icEyeDisable => _getImagePath('ic_eye_disable.svg');
String get icShare => _getImagePath('ic_share.svg');
@@ -8,6 +8,9 @@ class ResponsiveUtils {
final int minTabletWidth = 600;
final int minTabletLargeWidth = 900;
final double defaultSizeDrawerWidthMobileTablet = 375;
final double defaultSizeDrawerWidthWeb = 320;
final double _loginTextFieldWidthSmallScreen = 280.0;
final double _loginTextFieldWidthLargeScreen = 320.0;
final double _loginButtonWidth = 240.0;
@@ -83,7 +83,9 @@ class TreeViewChild {
AnimatedContainer(
duration: Duration(milliseconds: 400),
child: isExpanded!
? Column(mainAxisSize: MainAxisSize.min, children: children)
? Column(
mainAxisSize: MainAxisSize.min,
children: children.map((child) => Padding(padding: EdgeInsets.only(left: 20), child: child)).toList())
: Offstage(),
),
],