Comments (4)
have made some progress reading/testing - my understanding now would be:
Q1 - CustomPainter (canvas) seems to be the only way
Q2 - working ok (may have misunderstood / mis-setup original test apps)
Q3 - using the following parents seems to do the trick from what my testing has show (see code below).
Q4 - well this was just an aside...still interested.
Any comments? Can close otherwise...
@override
Widget build(BuildContext context) {
const double logicalWidth = 1920;
const double logicalHeight = 1080;
return FittedBox(
child: SizedBox(
width: logicalWidth,
height: logicalHeight,
child: GameMain(), // implements custompainter here
)
);
}
from touchable.
@callagga For Q2, what was the setup that you missed? I'm having the same issue.
from touchable.
I must admit I haven't looked at this since and really can't remember sorry
from touchable.
I'm having a similar issue but without overlapping. I think there might be a bug because the bottom right of all circles do not register click events on macOS
from touchable.
Related Issues (20)
- how to paint many elements? loop?
- Swipe effect with drawarc function HOT 1
- Click on the failure HOT 1
- Touch is very insensitive when rect or drawCircle is set to a small width HOT 2
- I want to change the mouse cursor.
- Problems with Gesture Detector HOT 2
- Panning and scaling inside an InteractiveViewer HOT 2
- Example doesn't work out of the box HOT 2
- Request: detect hover events
- onTapDown only for last drawn polygon HOT 1
- Error: Having both a Pan Gesture Recogniser and a Scale Gesture Recogniser is redundant HOT 1
- Incorrect Gesture Arguments HOT 3
- Detect mouse hover events on Canvas elements for Flutter Web and Desktop HOT 1
- Gesture detection broken with canvas.rotate canvas.translate HOT 4
- Touch event fire multi times unexpected HOT 1
- Incorrect GestureDetector arguments. HOT 1
- FEATURE: onHover
- touchable need to accpect canvas transform data. HOT 3
- HitTestBehavior.translucent does not work as expected.
- Feature: onDoubleTap
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 touchable.