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(
|
Expanded(child: SafeArea(
|
||||||
right: responsiveUtils.isLandscapeMobile(context),
|
right: responsiveUtils.isLandscapeMobile(context),
|
||||||
left: responsiveUtils.isLandscapeMobile(context),
|
left: responsiveUtils.isLandscapeMobile(context),
|
||||||
|
bottom: !PlatformInfo.isIOS,
|
||||||
child: Container(
|
child: Container(
|
||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAlias,
|
||||||
decoration: responsiveUtils.isWebDesktop(context)
|
decoration: responsiveUtils.isWebDesktop(context)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
import 'package:core/presentation/extensions/color_extension.dart';
|
import 'package:core/presentation/extensions/color_extension.dart';
|
||||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||||
|
import 'package:core/utils/platform_info.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class EmailViewBottomBarWidgetStyles {
|
class EmailViewBottomBarWidgetStyles {
|
||||||
@@ -16,6 +17,13 @@ class EmailViewBottomBarWidgetStyles {
|
|||||||
static const Color buttonBackgroundColor = Colors.transparent;
|
static const Color buttonBackgroundColor = Colors.transparent;
|
||||||
|
|
||||||
static const EdgeInsetsGeometry buttonPadding = EdgeInsets.symmetric(horizontal: 8, vertical: 12);
|
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(
|
static TextStyle getButtonTextStyle(
|
||||||
BuildContext context,
|
BuildContext context,
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ class EmailViewBottomBarWidget extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
color: EmailViewBottomBarWidgetStyles.backgroundColor
|
color: EmailViewBottomBarWidgetStyles.backgroundColor
|
||||||
),
|
),
|
||||||
|
padding: EmailViewBottomBarWidgetStyles.padding,
|
||||||
child: IntrinsicHeight(
|
child: IntrinsicHeight(
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
Reference in New Issue
Block a user