Crafting Gauges with geekyants_flutter_gauges (Part 2)

Check out Part 2 of our Crafting Gauges blog series to effortlessly create stunning gauges in Flutter using the geekyants_flutter_gauges package.

Author

Shaikh Afroz
Shaikh AfrozSoftware Engineer - II

Date

May 30, 2024

Table of Contents

Easily craft stunning gauges in Flutter with the geekyants_flutter_gauges package. Following our guide on Linear Gauges at https://geekyants.com/blog/crafting-gauges-with-geekyantsfluttergauges, let us explore the world of Radial Gauges using the same package.

What is a Radial Gauge? 🎚️ 

In its essence, a radial gauge comprises a circular dial with a pointer that indicates the current value within a predefined range. The position of the pointer on the dial reflects the magnitude of the data being represented. This dynamic representation allows users to grasp the significance of the data at a glance quickly. Coming to geekyAnts_flutter_gauges , it provides you with a widget to display data on a radial scale. Use this widget as a base to craft high-quality gauges to represent data or have some progress data in your app. It uses Flutter’s Render Objects under the hood to let you create stunning-looking gauges or indicators as required. In this blog, we cover the basic usage of Radial Gauge.

Getting Started with Radial Gauge

Add the dependency to your pubspec.yaml:

Import the package in your Dart code:

Now we delve into using the Gauge:

The above code gets you the basic radial gauge with a needle, which will look something like the below picture. Let us start exploring more so we can get a better understanding of it.

Basic Radial Gauge with Needle

We will explore some examples you might use in the app, but before that let us familiarize ourselves with the radial gauges naming and properties.

  • Radial Track
    The Radial Track defines the visual representation of the track within the Radial Gauge, with properties such as start, end, startAngle, and endAngle dictating its range, thickness, format trackLabels, and orientation. For instance, setting start to 0 and end to 100, along with startAngle as 0 and endAngle as 360, creates a complete circular track indicating values from 0 to 100 in a full revolution.

Radial track

  • Needle Pointers and Shape Pointers

    The NeedlePointer component in the RadialGauge creates a needle-like indicator that points to a specific value, with its position determined by the provided value property. For instance, setting NeedlePointer(value: 30) positions the needle at 30 units on the gauge's track. On the other hand, RadialShapePointer offers the flexibility to render custom shape pointers within the RadialGauge. Currently supporting only circle shape pointers, it allows customization of color, height, and width properties to tailor the appearance of the pointers to suit the application's visual requirements.

Needle pointers and shape pointers
Untitled (11).png

  • Widget Pointers

    Along with NeedlePointers and ShapePointers, we can add our widget pointers to the gauge, allowing for endless customizability options.

  • ValueBar

    The RadialValueBar component in the RadialGauge widget allows for the visualization of a dynamic value within the gauge, represented by a colored bar. By specifying properties such as value, color, radialOffset, and valueBarThickness, developers can customize the appearance and behavior of the value bar to suit their application's requirements. Additionally, the option to utilize a gradient allows for further visual enhancement, enabling the creation of compelling and informative data visualizations within the RadialGauge.

Untitled (12).png

  • Positioning

    RadiusFactor along with x and y coordinates can be used to correctly position the gauge wherever you like on the screen.

Radical Coordinates

Some Examples

Let us now go over some examples.

First, we will create something similar to a Speedometer.

Configure the RadialTrack to define the appearance of the speedometer track. Customize properties like thickness, color, and ruler styles using showLabel, primaryRulerColor, and secondaryRulerColor.

Once the track is completed, we can add the Shape Pointer and ValueBar as required add a RadialShapePointer to represent the speedometer needle, and a RadialValueBar to visualize the speed value within the speedometer. Update the pointer's value dynamically for interactivity.

The result should look like this:

Untitled (13).png

Here is the code for the entire Speedometer:

For the next example, let us recreate a simple activity tracker commonly found in smart watches. Hide the track and customize the appearance within the value bars.

Untitled (14).png

Here we will hide the track and do most of the customization using the valuebars of the Radial Gauge.

For the value bars, utilize radialOffset and thickness to achieve desired effects.

Increasing or decreasing the offset will move the valuebars closer or further away from the center.

The result should get you this:

Add a stack to your widget to show informational data in the center.

Untitled (15).png

Here is the entire code:

Hire Us Form

Looking to Explore Further?

These are just simple examples, visit https://gauges-showcase.vercel.app/ to view more examples of how you can create stunning Gauges with ease using RadialGauge. 


We have just scratched the surface there is a lot to play around with, so try cloning the repository and get your hands dirty. PR and Issues are welcome on the official Github repository https://github.com/GeekyAnts/GaugesFlutter.

Explore the power of geekyAnts_flutter_gauges! Leverage this tool to display data on a linear scale and create high-quality, visually appealing gauges for your app. The widget uses Flutter’s Render Objects, allowing for stunning designs.

SHARE ON

Related Articles.

More from the engineering frontline.

Dive deep into our research and insights on design, development, and the impact of various trends to businesses.

From RFPs to Revenue: How We Built an AI Agent Team That Writes Technical Proposals in 60 Seconds
Article

Apr 9, 2026

From RFPs to Revenue: How We Built an AI Agent Team That Writes Technical Proposals in 60 Seconds

GeekyAnts built DealRoom.ai — four AI agents that turn RFPs into accurate technical proposals in 60 seconds, with real-time cost breakdowns and scope maps.

How We Built an AI System That Automates Senior Solution Architect Workflows
Article

Apr 6, 2026

How We Built an AI System That Automates Senior Solution Architect Workflows

Discover how we built a 4-agent AI co-pilot that converts complex RFPs into draft technical proposals in 15 minutes — with built-in conflict detection, assumption surfacing, and confidence scoring.

AI Code Healer for Fixing Broken CI/CD Builds Fast
Article

Apr 6, 2026

AI Code Healer for Fixing Broken CI/CD Builds Fast

A deep dive into how GeekyAnts built an AI-powered Code Healer that analyzes CI/CD failures, summarizes logs, and generates code-level fixes to keep development moving.

A Real-Time AI Fraud Decision Engine Under 50ms
Article

Apr 2, 2026

A Real-Time AI Fraud Decision Engine Under 50ms

A deep dive into how GeekyAnts built a real-time AI fraud detection system that evaluates transactions in milliseconds using a hybrid multi-agent approach.

Building an Autonomous Multi-Agent Fraud Detection System in Under 200ms
Article

Apr 1, 2026

Building an Autonomous Multi-Agent Fraud Detection System in Under 200ms

GeekyAnts built a 5-agent fraud detection pipeline that makes decisions in under 200ms — 15x cheaper than single-model systems, with full explainability built in.

Building a Self-Healing CI/CD System with an AI Agent
Article

Mar 31, 2026

Building a Self-Healing CI/CD System with an AI Agent

When code breaks a pipeline, developers have to stop working and figure out why. This blog shows how an AI agent reads the error, finds the fix, and submits it for review all on its own.

Scroll for more
View all articles