Skip to content

Commit

Permalink
feat:animation left.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhalakupadhyay committed Sep 8, 2024
1 parent cd353bb commit ca7920e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/providers/badgeview_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class DrawBadgeProvider extends ChangeNotifier {
void initializeAnimation(TickerProvider vsync) {
_controller = AnimationController(
vsync: vsync,
duration: const Duration(seconds: 1000),
duration: const Duration(days: 1000),
)..addListener(() {
setAnimationMode();
changeGridValue(newGrid);
Expand Down
4 changes: 3 additions & 1 deletion lib/virtualbadge/view/badge_painter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ class BadgePainter extends CustomPainter {
for (int row = 0; row < grid.length; row++) {
for (int col = 0; col < grid[row].length; col++) {
final Paint paint = Paint()
..color = grid[row][col] ? Colors.red : Colors.grey.shade600
..color = grid[row][col]
? const Color.fromARGB(255, 255, 0, 0)
: Colors.grey.shade900
..style = PaintingStyle.fill;

final Path path = Path()
Expand Down

0 comments on commit ca7920e

Please sign in to comment.