leetcode_heatmap 0.0.1
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 usernameyear: Specific year to display (defaults to current year)cellSize: Size of each cell in the heatmap (default: 12.0)padding: Padding around the widgetbackgroundColor: Background color for empty cellscolors: List of 5 colors for different submission levels
License #
MIT License