TF-934 Implement open email in new tab
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
extension TapDownDetailsExtension on TapDownDetails {
|
||||
|
||||
RelativeRect getPosition(BuildContext context) {
|
||||
final screenSize = MediaQuery.of(context).size;
|
||||
final offset = globalPosition;
|
||||
final position = RelativeRect.fromLTRB(
|
||||
offset.dx,
|
||||
offset.dy,
|
||||
screenSize.width - offset.dx,
|
||||
screenSize.height - offset.dy,
|
||||
);
|
||||
return position;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user