leetcode_heatmap 0.0.1 copy "leetcode_heatmap: ^0.0.1" to clipboard
leetcode_heatmap: ^0.0.1 copied to clipboard

A Flutter widget to display a GitHub-style heatmap of LeetCode submissions using the LeetCode GraphQL API.

LeetCode Heatmap #

A Flutter widget that displays LeetCode submission activity as a GitHub-style heatmap.

Features #

  • Displays LeetCode submission activity in a visual heatmap
  • Customizable colors and cell sizes
  • Shows submission statistics (total submissions, current streak)
  • Supports different years
  • Responsive design with horizontal scrolling

Installation #

Add this to your pubspec.yaml:

dependencies:
  leetcode_heatmap: ^1.0.0

Usage #

import 'package:leetcode_heatmap/leetcode_heatmap.dart';

// Basic usage
LeetCodeHeatmap(
  username: 'your_leetcode_username',
)

// With customization
LeetCodeHeatmap(
  username: 'your_leetcode_username',
  year: 2023,
  cellSize: 15.0,
  colors: [
    Colors.grey[200]!,
    Colors.green[200]!,
    Colors.green[400]!,
    Colors.green[600]!,
    Colors.green[800]!,
  ],
)

Parameters #

  • username (required): LeetCode username
  • year: Specific year to display (defaults to current year)
  • cellSize: Size of each cell in the heatmap (default: 12.0)
  • padding: Padding around the widget
  • backgroundColor: Background color for empty cells
  • colors: List of 5 colors for different submission levels

License #

MIT License

2
likes
0
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter widget to display a GitHub-style heatmap of LeetCode submissions using the LeetCode GraphQL API.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on leetcode_heatmap