fix ab ActionMore can't popup
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
4beacf93d7
commit
a91c9ef614
@ -43,11 +43,8 @@ class _AddressBookState extends State<AddressBook> {
|
|||||||
return Obx(() {
|
return Obx(() {
|
||||||
if (gFFI.userModel.userName.value.isEmpty) {
|
if (gFFI.userModel.userName.value.isEmpty) {
|
||||||
return Center(
|
return Center(
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
onPressed: loginDialog,
|
onPressed: loginDialog, child: Text(translate("Login"))));
|
||||||
child: Text(translate("Login"))
|
|
||||||
)
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
if (gFFI.abModel.abLoading.value) {
|
if (gFFI.abModel.abLoading.value) {
|
||||||
return const Center(
|
return const Center(
|
||||||
@ -153,13 +150,13 @@ class _AddressBookState extends State<AddressBook> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text(translate('Tags')),
|
Text(translate('Tags')),
|
||||||
GestureDetector(
|
Listener(
|
||||||
onTapDown: (e) {
|
onPointerDown: (e) {
|
||||||
final x = e.globalPosition.dx;
|
final x = e.position.dx;
|
||||||
final y = e.globalPosition.dy;
|
final y = e.position.dy;
|
||||||
menuPos = RelativeRect.fromLTRB(x, y, x, y);
|
menuPos = RelativeRect.fromLTRB(x, y, x, y);
|
||||||
},
|
},
|
||||||
onTap: () => _showMenu(menuPos),
|
onPointerUp: (_) => _showMenu(menuPos),
|
||||||
child: ActionMore()),
|
child: ActionMore()),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user