v1.2.8
heatmap_calendar
Github의 기여 차트를 기반으로 한 히트맵 캘린더로 시간에 따른 값을 시각화하는 데 사용할 수 있습니다
50좋아요 8730일 다운로드40Pub 점수
플랫폼 정보 없음
GitHub 기여 차트를 기반으로 한 히트맵 캘린더
{"sdk":"flutter"}{"sdk":"flutter"}^4.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A Heat Map Calendar based on Github's contributions chart which can be used to visualize values over time
HeatMap Calendar in action
Add this to your package's pubspec.yaml file:
dependencies:
heatmap_calendar: ^1.2.8
You can install packages from the command line:
with pub:
$ pub get
with Flutter:
$ flutter pub get
import 'package:heatmap_calendar/heatmap_calendar.dart';
import 'package:heatmap_calendar/time_utils.dart';
...
HeatMapCalendar(
input: {
TimeUtils.removeTime(DateTime.now().subtract(Duration(days: 3))): 5,
TimeUtils.removeTime(DateTime.now().subtract(Duration(days: 2))): 35,
TimeUtils.removeTime(DateTime.now().subtract(Duration(days: 1))): 14,
TimeUtils.removeTime(DateTime.now()): 5,
},
colorThresholds: {
1: Colors.green[100],
10: Colors.green[300],
30: Colors.green[500]
},
weekDaysLabels: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
monthsLabels: [
"",
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
],
squareSize: 16.0,
textOpacity: 0.3,
labelTextColor: Colors.blueGrey,
dayTextColor: Colors.blue[500],
)