Skip to content

Don't work if DateTime have hour, minute, second ecc defined #40

Description

@codexnabbo

If you pass a DateTime with something else other than yeas,month and day set, there will be no info displayed.

import 'package:flutter_heatmap_calendar/flutter_heatmap_calendar.dart';

HeatMap(
  datasets: {
    DateTime(2021, 1, 6): 3,   // this work
    DateTime.now(): 7,         // this doesn't work
  },
  colorMode: ColorMode.opacity,
  showText: false,
  scrollable: true,
  colorsets: {
    1: Colors.red,
  },
);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions