try to fix drag feedback offset
This commit is contained in:
parent
a0b0423856
commit
aa917b1c25
|
@ -221,6 +221,10 @@ class WalletsHome extends StatelessWidget {
|
|||
} else if (screenWidth >= 650) {
|
||||
nTule = 3;
|
||||
}
|
||||
Offset followDragAnchorStrategy(
|
||||
Draggable<Object> d, BuildContext context, Offset point) {
|
||||
return Offset(d.feedbackOffset.dx - 30, d.feedbackOffset.dy - 0);
|
||||
}
|
||||
|
||||
return CustomScrollView(slivers: <Widget>[
|
||||
const SliverToBoxAdapter(child: SizedBox(height: 20)),
|
||||
|
@ -238,7 +242,8 @@ class WalletsHome extends StatelessWidget {
|
|||
// dragAnchorStrategy:
|
||||
// (Draggable<Object> _, BuildContext __, Offset ___) =>
|
||||
// const Offset(40, 40),
|
||||
dragAnchorStrategy: pointerDragAnchorStrategy,
|
||||
feedbackOffset: const Offset(-500, -500),
|
||||
dragAnchorStrategy: childDragAnchorStrategy,
|
||||
onDragStarted: () =>
|
||||
myWalletProvider.dragAddress = repository.address!,
|
||||
onDragEnd: (_) {
|
||||
|
|
Loading…
Reference in New Issue