Cycle history graph

A Cycle History Graph is a visual representation that shows a user’s menstrual cycle patterns over an extended period, often spanning several months or even years. This graph is used to identify long-term trends in cycle length and period duration.

import 'package:menstrual_cycle_widget/menstrual_cycle_widget.dart';

class MenstrualCycleGraphExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Cycle history graph'),
      ),
      body: MenstrualCycleHistoryGraph(),
    );
  }
}

Parameter

Parameters
Datatype
Description
Default Value

loadingText

String

Specify the loading text while fetch data from databse.

Loading...

headerTitle

String

Specify the header title

Cycle History

headerTitleTextStyle

TextStyle

Specify the text style of yAxis

TextStyle(color: Colors.black, fontSize: 10)

viewCycleHistoryLength

int

Speficy the length of cycle history which you want to show

3

appBarBackgroundColor

Color

Specify the title bar color of AppBar

Colors.blueAccent

Last updated