Skip to main content

All Questions

0 votes
0 answers
33 views

How to change the mouse cursor when a widget in Flutter is drag (and drop)?

in Flutter I have a LongPressDraggable. I want to change my cursor to a SystemMouseCursors.grabbing when I’m grabbing and moving around the widget how to do this? I tried to set ...
Fractale's user avatar
  • 1,568
1 vote
0 answers
288 views

calendar planner.The drag and drop is not working properly

i am building a daily planner with the help of GPT.each day of the calendar is divided in 30 minutes intervals (timeslots) and i can add tasks to each timeslot .i want to drag and drop tasks between ...
sot's user avatar
  • 25
0 votes
1 answer
481 views

I'm trying to automate drag and drop a draggable element in dart for flutter_integration testing

Trying to automate Drag and drop for testing. Element is of type Draggable<Student>. Tried drag() with longPress(). Tried drag with Offset and also tried moveTo() from TestGesture. But still ...
Mayur's user avatar
  • 1
0 votes
1 answer
234 views

Flutter Drag and Drop

I'm facing a problem implementing drag and drop in my project. I want dynamically add and delete draggable elements. The problem is that I can't understand how to get the reference to the widget I'm ...
Ivan Nizhniy's user avatar
2 votes
0 answers
70 views

How to prevent that a draggable widget overflow it's parent in flutter

I'm trying to build a tool to create database models with flutter and I want that when I create a widget (that will be the representation of a table) it could be dragged just inside of it's parent, I ...
peptidoglycan's user avatar
0 votes
0 answers
293 views

Flutter: change state when dragging

I have a color with a certain opacity, and i would like the opacity to change if a Draggable child is moved to the right. The code I have currently looks like this: Scaffold( appBar: ...
Ruder Buster's user avatar
2 votes
1 answer
2k views

Flutter Grid View Reorder & Drag Drop onto Another Item and Merge

I have been trying to add drag/drop support to my app, currently what I have come with is using this library: reorderable_grid_view I used this example code: code link The reason I used this library ...
Ali Yucel Akgul's user avatar
0 votes
1 answer
634 views

how to make material widget draggable into a container and score them in flutter?

i want to make either alphabets, pictures and some material button draggable in flutter like user can drag those on the screen. i am trying but it isnt working. i made the alphabet draggable but the ...
Daniyal Haider's user avatar
0 votes
0 answers
514 views

change the order of the Expasiontile list by dragging them

I have a list of objects created by a ListView.builder. this ListView returns an ExpasionTile for each object in the builder iteration. my purpose is how I can drag an ExpasionTile to another position ...
Christian Godoy's user avatar
0 votes
1 answer
903 views

Flutter Draggable widget is not moving when dragging inside Stack > AnimatedPositioned > GestureDetector > Listview

I'm currently developing scratch-like block-coding application with flutter. What I want to achieve is to make keyword-blocks listed at PaletteBlocks Below is what I've implemented so far // ...
Joseph Hwang's user avatar
0 votes
1 answer
3k views

Flame-engine, Draggable component doesn't work

I am completely newbie in flutter world specially flame-engine. Maybe it's a simple issue. But currently I couldn't figure it out. So please help me! The main issue is my Draggable component doesn't ...
Nyamkhuu Buyanjargal's user avatar
0 votes
1 answer
959 views

FLUTTER - DRAGGABLE & DRAG TARGET - How to deal with the "on will accept" and "on accept" parameters

I am building a small ANAGRAM game as a way to learn how to use the "drag and drop" features in Flutter. I have managed to write some code, but for some reason, the dragged "letters&...
SylvainJack's user avatar
  • 1,217
1 vote
0 answers
288 views

How to select and drag drop Items from a scrollable ListView.builder. to any area of the app Flutter?

import 'package:flutter/material.dart'; void main() => runApp(MaterialApp( home: oneCardSelectinAnimation(), )); class oneCardSelectinAnimation extends StatefulWidget { @override ...
murat alagöz's user avatar
4 votes
1 answer
9k views

How to update Draggable child when entering DragTarget in Flutter?

I have a number of Draggables and DragTargets. On the Draggables I have specified child and feedback, however I also want it to change it's look when the Draggable enters the DragTarget. I can't see ...
dynamokaj's user avatar
  • 481