TF-381 Apply new UI EmailView for browser
This commit is contained in:
@@ -33,7 +33,7 @@ class ResponsiveUtils {
|
||||
|
||||
bool isMobile(BuildContext context) => getDeviceWidth(context) < minTabletWidth;
|
||||
|
||||
bool isTablet(BuildContext context) => getDeviceWidth(context) >= minTabletWidth && getDeviceWidth(context) < minDesktopWidth;
|
||||
bool isTablet(BuildContext context) => getDeviceWidth(context) >= minTabletWidth && getDeviceWidth(context) < minTabletLargeWidth;
|
||||
|
||||
bool isDesktop(BuildContext context) => getDeviceWidth(context) >= minDesktopWidth;
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ class ButtonBuilder {
|
||||
_onPressActionWithPositionClick?.call(position);
|
||||
}
|
||||
},
|
||||
borderRadius: BorderRadius.all(Radius.circular(_radiusSplash ?? 0)),
|
||||
borderRadius: BorderRadius.all(Radius.circular(_radiusSplash ?? 20)),
|
||||
child: Container(
|
||||
key: _key,
|
||||
alignment: Alignment.center,
|
||||
|
||||
@@ -10,6 +10,7 @@ Widget buildIconWeb({
|
||||
IconWebCallback? onTap,
|
||||
EdgeInsets? iconPadding,
|
||||
double? iconSize,
|
||||
double? splashRadius,
|
||||
}) {
|
||||
return Material(
|
||||
color: Colors.transparent,
|
||||
@@ -18,7 +19,7 @@ Widget buildIconWeb({
|
||||
icon: icon,
|
||||
iconSize: iconSize,
|
||||
padding: iconPadding ?? EdgeInsets.all(8.0),
|
||||
splashRadius: 20,
|
||||
splashRadius: splashRadius ?? 20,
|
||||
tooltip: tooltip,
|
||||
onPressed: onTap)
|
||||
);
|
||||
@@ -27,9 +28,10 @@ Widget buildIconWeb({
|
||||
Widget buildIconWebHasPosition(BuildContext context, {
|
||||
required Widget icon,
|
||||
String? tooltip,
|
||||
IconWebHasPositionCallback? onTap
|
||||
IconWebHasPositionCallback? onTapDown,
|
||||
IconWebCallback? onTap,
|
||||
}) {
|
||||
return GestureDetector(
|
||||
return InkWell(
|
||||
onTapDown: (detail) {
|
||||
final screenSize = MediaQuery.of(context).size;
|
||||
final offset = detail.globalPosition;
|
||||
@@ -39,10 +41,12 @@ Widget buildIconWebHasPosition(BuildContext context, {
|
||||
screenSize.width - offset.dx,
|
||||
screenSize.height - offset.dy,
|
||||
);
|
||||
onTap?.call(position);
|
||||
onTapDown?.call(position);
|
||||
},
|
||||
onTap: () => onTap?.call(),
|
||||
borderRadius: BorderRadius.all(Radius.circular(35)),
|
||||
child: Tooltip(
|
||||
message: tooltip,
|
||||
message: tooltip ?? '',
|
||||
child: icon,
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user