TF-313 Apply new ui for BottomBar EmailView
This commit is contained in:
@@ -38,6 +38,7 @@ class EmailView extends GetView {
|
||||
_buildAppBar(context),
|
||||
_buildDivider(),
|
||||
Expanded(child: _buildEmailBody(context)),
|
||||
Divider(color: AppColor.colorDividerEmailView, height: 1),
|
||||
_buildBottomBar(context),
|
||||
]
|
||||
)
|
||||
@@ -75,7 +76,7 @@ class EmailView extends GetView {
|
||||
|
||||
Widget _buildBottomBar(BuildContext context) {
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(left: 6, top: 6, right: 6, bottom: 6),
|
||||
padding: EdgeInsets.zero,
|
||||
child: Obx(() => (BottomBarMailWidgetBuilder(
|
||||
context,
|
||||
imagePaths,
|
||||
|
||||
@@ -51,8 +51,7 @@ class BottomBarMailWidgetBuilder {
|
||||
bottom: _responsiveUtils.isMobileDevice(_context) ? 8 : 16,
|
||||
right: 5))
|
||||
..textStyle(TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: _responsiveUtils.isMobileDevice(_context) ? 13 : 16,
|
||||
fontSize: _responsiveUtils.isMobileDevice(_context) ? 12 : 16,
|
||||
color: AppColor.colorTextButton))
|
||||
..onPressActionClick(() {
|
||||
if (_onPressEmailActionClick != null) {
|
||||
@@ -68,8 +67,7 @@ class BottomBarMailWidgetBuilder {
|
||||
bottom: _responsiveUtils.isMobileDevice(_context) ? 8 : 16,
|
||||
right: 5))
|
||||
..textStyle(TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: _responsiveUtils.isMobileDevice(_context) ? 13 : 16,
|
||||
fontSize: _responsiveUtils.isMobileDevice(_context) ? 12 : 16,
|
||||
color: AppColor.colorTextButton))
|
||||
..onPressActionClick(() {
|
||||
if (_onPressEmailActionClick != null) {
|
||||
@@ -85,14 +83,29 @@ class BottomBarMailWidgetBuilder {
|
||||
bottom: _responsiveUtils.isMobileDevice(_context) ? 8 : 16,
|
||||
right: 5))
|
||||
..textStyle(TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: _responsiveUtils.isMobileDevice(_context) ? 13 : 16,
|
||||
fontSize: _responsiveUtils.isMobileDevice(_context) ? 12 : 16,
|
||||
color: AppColor.colorTextButton))
|
||||
..onPressActionClick(() {
|
||||
if (_onPressEmailActionClick != null) {
|
||||
_onPressEmailActionClick!(EmailActionType.forward);
|
||||
}})
|
||||
..text(AppLocalizations.of(_context).forward, isVertical: _responsiveUtils.isMobile(_context)))
|
||||
.build(),
|
||||
(ButtonBuilder(_imagePaths.icNewMessage)
|
||||
..key(Key('button_new_message'))
|
||||
..size(20)
|
||||
..paddingIcon(EdgeInsets.only(
|
||||
top: _responsiveUtils.isMobileDevice(_context) ? 10 : 16,
|
||||
bottom: _responsiveUtils.isMobileDevice(_context) ? 8 : 16,
|
||||
right: 5))
|
||||
..textStyle(TextStyle(
|
||||
fontSize: _responsiveUtils.isMobileDevice(_context) ? 12 : 16,
|
||||
color: AppColor.colorTextButton))
|
||||
..onPressActionClick(() {
|
||||
if (_onPressEmailActionClick != null) {
|
||||
_onPressEmailActionClick!(EmailActionType.compose);
|
||||
}})
|
||||
..text(AppLocalizations.of(_context).new_message, isVertical: _responsiveUtils.isMobile(_context)))
|
||||
.build()
|
||||
]
|
||||
);
|
||||
|
||||
@@ -736,4 +736,11 @@ class AppLocalizations {
|
||||
name: 'preparing_to_save'
|
||||
);
|
||||
}
|
||||
|
||||
String get new_message {
|
||||
return Intl.message(
|
||||
'New message',
|
||||
name: 'new_message',
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user