TF-934 Implement open email in new tab

This commit is contained in:
dab246
2022-11-14 16:30:25 +07:00
committed by Dat H. Pham
parent 83f8049c48
commit 4f981878c3
13 changed files with 432 additions and 251 deletions
@@ -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;
}
}