Skip to content
On this page

ChartIndicator

An indicator for a highlighted chart value.

ChartIndicator in FluttyUIChartIndicator in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

ChartIndicator

const ChartIndicator({
  super.key,
  required this.position,
  this.style = const ChartIndicatorStyle(),
  this.color,
});
ParameterTypeRequiredDefault
keyKey?Nonull
positionOffsetYes—
styleChartIndicatorStyleNoconst ChartIndicatorStyle()
colorColor?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/charts/chart_indicator/chart_indicator.dart

This reference is generated from the ChartIndicator declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI