heatmap_calendar_shamsi 1.0.3 copy "heatmap_calendar_shamsi: ^1.0.3" to clipboard
heatmap_calendar_shamsi: ^1.0.3 copied to clipboard

outdated

A Heat Map Calendar based on heatmap_calendar but it uses shamsi calender instead

Build Status

Flutter Heat Map Calendar #

A Heat Map Calendar based on Github's contributions chart which can be used to visualize values over time

HeatMap Calendar in action

Installing #

1. Depend on it #

Add this to your package's pubspec.yaml file:

Also shamsi_date package is required

dependencies:
  heatmap_calendar_shamsi: ^1.2.5
  shamsi_date: ^0.8.1

2. Install it #

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Example #

import 'package:heatmap_calendar_shamsi/heatmap_calendar_shamsi.dart';
import 'package:heatmap_calendar_shamsi/time_utils.dart';
...

HeatMapCalendar(
  input: {
    TimeUtils.removeTime(Jalali.now().addDays(-3)): 5,
    TimeUtils.removeTime(Jalali.now().addDays(-2)): 35,
    TimeUtils.removeTime(Jalali.now().addDays(-1)): 14,
    TimeUtils.removeTime(Jalali.now()): 5,
  },
  colorThresholds: {
    1: Colors.green[100],
    10: Colors.green[300],
    30: Colors.green[500]
  },
  squareSize: 20.0,
    textOpacity: 0.3,
    labelTextColor: Colors.blueGrey,
    dayTextColor: Colors.blue[500],
  )
1
likes
0
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

A Heat Map Calendar based on heatmap_calendar but it uses shamsi calender instead

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, shamsi_date

More

Packages that depend on heatmap_calendar_shamsi