Skip to content
On this page

ChartCrosshair

A crosshair overlay for inspecting chart values.

ChartCrosshair in FluttyUIChartCrosshair 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.

ChartCrosshair

const ChartCrosshair({
  super.key,
  required this.x,
  required this.top,
  required this.bottom,
  this.path,
  this.style = const ChartCrosshairStyle(),
});
ParameterTypeRequiredDefault
keyKey?Nonull
xdoubleYes—
topdoubleYes—
bottomdoubleYes—
pathPath?Nonull
styleChartCrosshairStyleNoconst ChartCrosshairStyle()

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_crosshair/chart_crosshair.dart

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

DartFlutter

Get started with FluttyUI