Comments (6)
We've refactored the example to allow for embedded buttons :)
from flutter_vignettes.
This happens because the FlightBarcode
is Wrapped inside a Gesture detector here.
from flutter_vignettes.
You can refer here to find how to that behavior.
from flutter_vignettes.
That's an unexpected behavior.
Look at this Widget. When I tap on red container, onTap is fired. When I press the button, onPressed is triggered.
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("GestureDetector Test")),
body: Column(
children: <Widget>[
GestureDetector(
onTap: () => print("gestureDetector onTap"),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Container(
color: Colors.red,
height: 200,
child: Text("Gesture"),
),
FlatButton(
child: Text("button"),
onPressed: () => print("button onPressed"),
)
],
),
)
],
),
);
}
}
from flutter_vignettes.
In the Flutter documentation here it is mentioned that in Gesture Arena only one of the Gesture is declared as victorious. This might differ from one case to another case. Hence it requires custom GestureDetectors.
from flutter_vignettes.
Gesture arena didn't recognize button onPressed gesture.
Gesture arena 48 ❙ ★ Opening new gesture arena.
// GestureDetector's onTap
Gesture arena 48 ❙ Adding: TapGestureRecognizer#6cdd6(debugOwner: GestureDetector, state: ready, button: 1)
// ListView scroll
Gesture arena 48 ❙ Adding: VerticalDragGestureRecognizer#675e5(start behavior: start)
Gesture arena 48 ❙ Closing with 2 members.
Gesture arena 48 ❙ Rejecting: VerticalDragGestureRecognizer#675e5(start behavior: start)
Gesture arena 48 ❙ Sweeping with 1 member.
Gesture arena 48 ❙ Winner: TapGestureRecognizer#6cdd6(debugOwner: GestureDetector, state: ready, finalPosition: Offset(129.4, 493.4), finalLocalPosition: Offset(129.4, 380.3), button: 1, sent tap down)
from flutter_vignettes.
Related Issues (19)
- Noticeable delay in loading/displaying 3D meshes in Indie 3D vignette HOT 2
- Error while running Fluid nav bar HOT 1
- Query related to change the icon of nav bar
- [Constellation Vignette] This expression has type 'void' and can't be used HOT 2
- can anyone expain the tween in math,im very confused,thx
- Infinite scrolling ListView
- Change page programmatically HOT 1
- unable to run parallax_travel_cards_hero project HOT 6
- needs update to the latest version of flutter HOT 3
- Vignette Showcase site link broken HOT 1
- Clean up widget code on Basketball PTR
- Unclear instructions for implementation
- Refactor plant_forms
- Rendering Issues with Sparkle Party particles on impeller HOT 1
- i am unable to clone the project and getting error URL does not exist. in Fluid Nav Bar HOT 1
- Unable to run dog_slider HOT 3
- drink_rewards_list (warning): bottom overflowed by 0.651 pixels HOT 1
- dependencies in shared path is not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_vignettes.