TF-1427 Focus button overlay on email view
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
|
import 'package:pointer_interceptor/pointer_interceptor.dart';
|
||||||
|
|
||||||
class PopupItemWidget extends StatelessWidget {
|
class PopupItemWidget extends StatelessWidget {
|
||||||
|
|
||||||
@@ -27,7 +28,8 @@ class PopupItemWidget extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return InkWell(
|
return PointerInterceptor(
|
||||||
|
child: InkWell(
|
||||||
onTap: onCallbackAction,
|
onTap: onCallbackAction,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: padding ?? const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
|
padding: padding ?? const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
|
||||||
@@ -52,6 +54,7 @@ class PopupItemWidget extends StatelessWidget {
|
|||||||
])
|
])
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+4
-1
@@ -4,6 +4,7 @@ import 'package:flutter/cupertino.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:model/mailbox/presentation_mailbox.dart';
|
import 'package:model/mailbox/presentation_mailbox.dart';
|
||||||
|
import 'package:pointer_interceptor/pointer_interceptor.dart';
|
||||||
|
|
||||||
class MailboxBottomSheetActionTileBuilder extends CupertinoActionSheetActionBuilder<PresentationMailbox> {
|
class MailboxBottomSheetActionTileBuilder extends CupertinoActionSheetActionBuilder<PresentationMailbox> {
|
||||||
|
|
||||||
@@ -32,7 +33,8 @@ class MailboxBottomSheetActionTileBuilder extends CupertinoActionSheetActionBuil
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build() {
|
Widget build() {
|
||||||
return AbsorbPointer(
|
return PointerInterceptor(
|
||||||
|
child: AbsorbPointer(
|
||||||
absorbing: absorbing,
|
absorbing: absorbing,
|
||||||
child: Opacity(
|
child: Opacity(
|
||||||
opacity: opacity ? 0.3 : 1.0,
|
opacity: opacity ? 0.3 : 1.0,
|
||||||
@@ -57,6 +59,7 @@ class MailboxBottomSheetActionTileBuilder extends CupertinoActionSheetActionBuil
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user