Water graph

import 'package:menstrual_cycle_widget/menstrual_cycle_widget.dart';
class MenstrualCycleGraphExample extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Water graph'),
),
body: MenstrualCycleWaterGraph(
waterUnits: WaterUnits.liters,
isShowMoreOptions: true,
onPdfDownloadCallback: (pdfPath) async {
// This function will be called when the user downloads an pdf
// pdfPath contains the path to the downloaded pdf
},
onImageDownloadCallback: (imagePath) async {
// This function will be called when the user downloads an image
// imagePath contains the path to the downloaded image
},
),
);
}
}Parameter
Parameters
Datatype
Description
Default Value
Last updated