I'm trying to recreate a UI in flutter that looks like this I need to get this shapes in the position they appear in the image above, I did some research and came across Flutter Custom Paint, tried checking for tutorials on how to use it to achieve this design but can't find anything that points me in the right direction. Please is there anyway in flutter to recreate this UI?
Instead of complicating things
You can use stack for overlapping
And for that circles you can use containers with borderradius
and using positioned widget to position the circles based on your need
MORE THAN THIS
you can export that design as an image and use
Stack{
children[
THAT IMAGE,
YOUR UI,
]}
Related
I want to create different locations circles shaped from the app bar using flutter, like this
image also without using packages?
This article about flutter custom paints may help a link
I want to add to come up with the following UI in flutter.
I added two containers with Stack for the desired locations on the screen.
However, I couldn't make them shine and look like the following image.
Thanks
Have a look at the flutter BackdropFilter application and properties, and try to have this over the coloured spots.
BackdropFilter
You could also look at the Glassmorphism package to achieve a similar effect.
Glassmorphism
I'm trying to make a flutter container who's top edge is slanted, and additionally has a shadow following the slanted edge. It feel's like there should be a simple enough solution, but after experimenting with lots of different online articles and stack overflow posts, I still have not been able to produce this.
I've been using Clip Path to create the container that I need. Is there a simple way to create a shadow around the ClipPath?
I know there are game/sprite engines written for Flutter, but my goal is to better understand painting and widgets, so I want to do this myself.
If I wanted a bunch of small widgets that could move around on a gameboard, what would be the best way to do this? Would I just create a box widget with fixed dimensions and have a bunch of children where I could control their position?
One example would be having a playing area with scrabble tiles that could be moved around. Or Tetris blocks falling. Different widgets that can be anywhere and that can be moved. I'm just looking for someone to point me in the right direction. Thanks.
You can draw custom shapes and lines using canvas in flutter and then animate them as flutter supports 60 frames per second. You need to understand customPaint very well. Here is a great demonstration of how to use customPaint to draw custom shapes.
https://medium.com/#rjstech/flutter-custom-paint-tutorial-build-a-radial-progress-6f80483494df
I'm generating multiple widgets(Containers in this case) using a ListView.builder and I also use a custom ClipPath to give a custom shape to them.
I was wondering if would it be possible to translate or somehow overlay those list items in order to place them so that the background(black area in the attached screenshot) would be covered. By that I mean I want to place them right under each other, like puzzle pieces. To be able to fit them right under each other would probably mean they would have to be overlayed somehow. Was googling but without any success.
Hopefully there's some Flutter experts out there who are nice enough to guide me. Thanks a lot!