Skip to content
Snippets Groups Projects
Commit aa917b1c authored by poka's avatar poka
Browse files

try to fix drag feedback offset

parent a0b04238
No related branches found
No related tags found
1 merge request!32Calcul tx fees
Pipeline #17288 waiting for manual action
...@@ -221,6 +221,10 @@ class WalletsHome extends StatelessWidget { ...@@ -221,6 +221,10 @@ class WalletsHome extends StatelessWidget {
} else if (screenWidth >= 650) { } else if (screenWidth >= 650) {
nTule = 3; 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>[ return CustomScrollView(slivers: <Widget>[
const SliverToBoxAdapter(child: SizedBox(height: 20)), const SliverToBoxAdapter(child: SizedBox(height: 20)),
...@@ -238,7 +242,8 @@ class WalletsHome extends StatelessWidget { ...@@ -238,7 +242,8 @@ class WalletsHome extends StatelessWidget {
// dragAnchorStrategy: // dragAnchorStrategy:
// (Draggable<Object> _, BuildContext __, Offset ___) => // (Draggable<Object> _, BuildContext __, Offset ___) =>
// const Offset(40, 40), // const Offset(40, 40),
dragAnchorStrategy: pointerDragAnchorStrategy, feedbackOffset: const Offset(-500, -500),
dragAnchorStrategy: childDragAnchorStrategy,
onDragStarted: () => onDragStarted: () =>
myWalletProvider.dragAddress = repository.address!, myWalletProvider.dragAddress = repository.address!,
onDragEnd: (_) { onDragEnd: (_) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment