feat : map

This commit is contained in:
2025-04-09 17:05:38 +03:30
parent e83388670c
commit 0286725ac6
41 changed files with 1120 additions and 91 deletions

View File

@@ -0,0 +1,59 @@
import 'package:flutter/material.dart';
class AnimatedClusterMarker extends StatefulWidget {
final int count;
const AnimatedClusterMarker({super.key, required this.count});
@override
State<AnimatedClusterMarker> createState() => _AnimatedClusterMarkerState();
}
class _AnimatedClusterMarkerState extends State<AnimatedClusterMarker>
with SingleTickerProviderStateMixin {
late AnimationController _controller;
@override
void initState() {
super.initState();
_controller = AnimationController(
vsync: this,
duration: const Duration(milliseconds: 300),
)..forward(); // start animation
}
@override
void dispose() {
_controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return ScaleTransition(
scale: CurvedAnimation(parent: _controller, curve: Curves.easeOutBack),
child: Opacity(
opacity: _controller.value,
child: Container(
width: 40,
height: 40,
alignment: Alignment.center,
decoration: BoxDecoration(
color: Colors.blueAccent,
shape: BoxShape.circle,
border: Border.all(color: Colors.white, width: 2),
),
child: Text(
widget.count.toString(),
style: const TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
),
),
),
),
);
}
}