TF-248 Update list email, email content for tablet
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:model/mailbox/presentation_mailbox.dart';
|
||||
import 'package:model/model.dart';
|
||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||
|
||||
@@ -169,11 +168,14 @@ class AppBarThreadWidgetBuilder {
|
||||
if (_responsiveUtils.isTablet(_context)) {
|
||||
width = width * 0.7;
|
||||
widthSiblingsWidget = 300;
|
||||
} else if (_responsiveUtils.isTabletLarge(_context)) {
|
||||
width = width * 0.35;
|
||||
widthSiblingsWidget = 250;
|
||||
} else if (_responsiveUtils.isDesktop(_context)) {
|
||||
width = width * 0.2;
|
||||
widthSiblingsWidget = 300;
|
||||
}
|
||||
final maxWidth = width - widthSiblingsWidget;
|
||||
final maxWidth = width > widthSiblingsWidget ? width - widthSiblingsWidget : 0.0;
|
||||
return maxWidth;
|
||||
}
|
||||
}
|
||||
@@ -76,7 +76,8 @@ class BottomBarThreadSelectionWidget {
|
||||
}})
|
||||
..text(AppLocalizations.of(_context).move, isVertical: _responsiveUtils.isMobile(_context)))
|
||||
.build(),
|
||||
(ButtonBuilder(_imagePaths.icSpamV2)
|
||||
if (!_responsiveUtils.isDesktop(_context) && !_responsiveUtils.isTabletLarge(_context))
|
||||
(ButtonBuilder(_imagePaths.icSpamV2)
|
||||
..key(Key('button_spam_email'))
|
||||
..paddingIcon(EdgeInsets.all(8))
|
||||
..textStyle(TextStyle(fontSize: 12, color: AppColor.colorTextButton))
|
||||
@@ -86,7 +87,8 @@ class BottomBarThreadSelectionWidget {
|
||||
}})
|
||||
..text(AppLocalizations.of(_context).spam, isVertical: _responsiveUtils.isMobile(_context)))
|
||||
.build(),
|
||||
(ButtonBuilder(_imagePaths.icDeleteV2)
|
||||
if (!_responsiveUtils.isDesktop(_context) && !_responsiveUtils.isTabletLarge(_context))
|
||||
(ButtonBuilder(_imagePaths.icDeleteV2)
|
||||
..key(Key('button_delete_email'))
|
||||
..paddingIcon(EdgeInsets.all(8))
|
||||
..textStyle(TextStyle(fontSize: 12, color: AppColor.colorTextButton))
|
||||
|
||||
Reference in New Issue
Block a user