Detecting Clicks On Overlapping CustomPaint Widgets

This post will describe how to detect on which figure is clicked when there are multiple overlapping figures. We are going to start by showing how to do this for three overlapping figures. After that, we are going to apply it to the hexagon grid from the previous post. Detecting clicks on three overlapping figures So instead of hexagons, let’s draw something else. We are going to draw three circles, so for this circle, we need a new CustomPainter. As…

Read More

Drawing a Hexagon Grid in Flutter

The goal of this post is to show you how to extend the CustomPaint to draw your own figures. We are also going to draw multiple CustomPaint Widgets on the same canvas so that we can reuse our figure and draw it multiple times. This post uses a hexagon as an example, but it can be done with any figure. Drawing a hexagon The first goal is to draw a hexagon. We can extend the CustomPaint to draw a hexagon.…

Read More

Mutations on a GraphQL Endpoint with Flutter

In the previous blog post, we described how to query a GraphQL endpoint. Here we retrieved the information about Formula 1 standings. Of course, there are more races in this season, and (hopefully) this is not the last season. So in this blog post, we will describe how to execute mutations. This way we can insert new races that are coming! Setup of the project We are going to use the Graphql Flutter dependency. Installing new dependencies is easy in…

Read More