TF-2261 Fix bottom bar email view broken
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 7e098952b33930d464a2226dd2971f052249ff02)
This commit is contained in:
@@ -63,6 +63,7 @@ class EmailView extends GetWidget<SingleEmailController> {
|
||||
Expanded(child: SafeArea(
|
||||
right: responsiveUtils.isLandscapeMobile(context),
|
||||
left: responsiveUtils.isLandscapeMobile(context),
|
||||
bottom: !PlatformInfo.isIOS,
|
||||
child: Container(
|
||||
clipBehavior: Clip.antiAlias,
|
||||
decoration: responsiveUtils.isWebDesktop(context)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class EmailViewBottomBarWidgetStyles {
|
||||
@@ -16,6 +17,13 @@ class EmailViewBottomBarWidgetStyles {
|
||||
static const Color buttonBackgroundColor = Colors.transparent;
|
||||
|
||||
static const EdgeInsetsGeometry buttonPadding = EdgeInsets.symmetric(horizontal: 8, vertical: 12);
|
||||
static EdgeInsetsGeometry? get padding {
|
||||
if (PlatformInfo.isIOS) {
|
||||
return const EdgeInsetsDirectional.only(bottom: 30);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
static TextStyle getButtonTextStyle(
|
||||
BuildContext context,
|
||||
|
||||
@@ -53,6 +53,7 @@ class EmailViewBottomBarWidget extends StatelessWidget {
|
||||
),
|
||||
color: EmailViewBottomBarWidgetStyles.backgroundColor
|
||||
),
|
||||
padding: EmailViewBottomBarWidgetStyles.padding,
|
||||
child: IntrinsicHeight(
|
||||
child: Row(
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user