Results for “GestureDetector”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Concepts
Guides
- Add interactivity to your Flutter appdoc
How to implement a stateful widget that responds to taps. How to
- Taps, drags, and other gesturesdoc
How gestures, such as taps and drags, work in Flutter. This document
- Animate a widget across screensdoc
build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text('Main Screen')), body: GestureDetector( onTap: () { Navigator.push( context, MaterialPageRoute ( builder: (context) { return const DetailScreen(); }, ), ); }, child: Image.network(' https
- Animate a widget using a physics simulationdoc
State late AnimationController _controller; @override void initState() { super.initState(); } @override void dispose() { } Add a GestureDetector that handles the onPanDown , onPanUpdate , and onPanEnd callbacks. To adjust the alignment
API reference
Version changes
- - Fixes an error on Flutter Web where `onTap` is called twice on various widgets (`GestureDetector`, `InkWell`) when semantics are enabled.3.24.2bugfix
error on Flutter Web where `onTap` is called twice on various widgets (`GestureDetector`, `InkWell`) when semantics are enabled
- Trackpad gestures can trigger GestureRecognizer3.3.0breaking
only touch and mouse usage. ### For gesture interactions suitable for trackpad usage #### Using `GestureDetector` No change is needed, `GestureDetector` automatically processes trackpad gesture events and triggers
- Default drag scrolling devices2.5.0breaking
`ScrollBehavior`s now allow or disallow drag scrolling from specified `PointerDeviceKind`s