Create a grid of 1000*1000 in flutter - dart

i'm looking for create a grid of 1000*1000 box. User should be able to click on one and zoom in. Do anyone knows a material to do so ?
I tried to do a gridview, way to long to be initialize for only 2000 unity
Thanks for reading

If performance is a problem, use a CustomPainter and a GestureDetector to handle painting and gesture detection manually. Make sure that you only paint the boxes which are visible on screen.

Related

How do I do a two-finger rotate gesture in Flutter?

I'm using Flutter for my mobile app. My designer told me to use a "two-finger rotate" gesture for one of our screens. How do I implement this with Flutter?
I hope I'm wrong. But it doesn't seems like this has been implemented yet.
Ideally you should create a RotationGestureRecognizer that extends OneSequenceGestureRecognizer ; which can then be added in GestureDetector (and submit a cool pull request). You can use ScaleGestureRecognizer as exemple.
You could also use onPanDown, onPanUpdate and onPanEnd to keep the position of all pointers. And use the onPanUpdate delta to calculate the rotation.

Corona SDK - Touch does not end when dragged offscreen/off grid of buttons

I setup a grid wherein the user touches one and moves through the grid.
The problem is that when the touch goes beyond the grid or beyond the screen, the touch does not end.
Do note that the grid is made up of individual square "buttons" that change color when the user drags their finger over them.
How do I fix this so the touch ends when it leaves the screen or leaves the grid?
Thanks for the help!
Regards,
John
this seems to have already been answered here:
How do I detect a TouchOut event in Corona SDK?
And here:
touchEvent for Grid(2D-Array)of Sprites using Corona sdk
If you need more help, please post your code so it's easier to help you.

Blackberry app map clickable marker

I am thinking about developing a BB app that is based on maps provided by BB.
The trick is that I need the markers on the map to be clickable.
I did a little research and a lot of people are saying that this is not possible.
Has anyone done it so he can point me to the right direction?
Thanks in advance.
http://www.wikitude.com -> this application does.
You can extend the MapField class, and then handle the interaction with your markers internally in your class (paint() and touchEvent() should be overridden).
Or eventually, as with many UI-classes, you can do "impossible" things just by painting them on a Bitmap, and manipulating it before rendering on screen.

Smooth Scrolling in graphics -how to achieve it

I am trying to draw Text,lines etc in the graphics of the manager,Problem that i am presently facing is that
If i have the content more than that of the display width,I am not able to scroll it,
I tried using focusfield with just focus on it,Problem that i face on using this,whenever i switch to some other manager,I am getting focus stuck in the focus field,
So anyone help me in achieving a smooth scrolling in the graphics of the Manager.
Regards
Rakesh shankar.P
I increased the size of emptyfield ,added the focus to it,thats it.

Animation on top of MapField in Blackberry

I am using blackberry maps to write my Application and want to show current location of the user on the map using a Blue dot image. I am able to do it by overriding the paint() method of the MapField and place the image at the right place.
However now I want to pulsate(breathing bubble) the image, for that I am using a gif image with 3 different frames. Here i am not sure how to display all the 3 frames at certain frame rate so that I don't have to rely upon mapfield.paint() to draw my images. Initially I thought of using AnimatedGifField's thread for this, but not sure how to using it coz i can't add a field(AnimatedGifField) to a field(MapField). I am using JDE 6.0
Does anyone has any idea about it..?
I would probably just keep using the paint() method, but when you need to redraw the bubble, invalidate a region instead of invalidating the entire screen. This will allow you to continue using the paint method without needing to have the entire thing redraw itself.

Resources