Mirrored in Flutter Linear Gauge (SfLinearGauge)

21 May 20251 minute to read

The isMirrored property in SfLinearGauge allows you to mirror all the gauge elements. This feature is useful when you need to display the gauge in the opposite direction.

  • DART
  • @override
      Widget build(BuildContext context) {
        return Center(
          child: SfLinearGauge(isMirrored: true)
        );
      }

    Mirror linear gauge

    Comparison for the mirrored and normal gauge

    The following screenshot provides a visual comparison between a mirrored Linear Gauge and a normal Linear Gauge.

    Mirrored linear gauge comparsion