website/docs/controls/gesturedetector.md
import {ClassMembers, ClassSummary, CodeExample, Image} from '@site/src/components/crocodocs';
<ClassSummary name={frontMatter.class_name} /><CodeExample path={frontMatter.examples + '/handling_events/main.py'} language="python" />
The following example demonstrates how a control can be freely dragged inside a Stack.
The sample also shows that GestureDetector can have a child control (blue container) as well as be nested inside another control (yellow container) giving the same results.
<CodeExample path={frontMatter.examples + '/draggable_containers/main.py'} language="python" />
<Image src={frontMatter.example_images + '/draggable_containers.gif'} alt="draggable-containers" width="40%" />
<CodeExample path={frontMatter.examples + '/window_drag_area/main.py'} language="python" />
<CodeExample path={frontMatter.examples + '/mouse_cursors/main.py'} language="python" />
<ClassMembers name={frontMatter.class_name} />