not_static_icons
Flutter के लिए सुंदर रूप से निर्मित एनीमेटेड आइकन, Lucide के साथ — Rive या Lottie की आवश्यकता नहीं।
Rive या Lottie के बिना Flutter के लिए सुंदर रूप से निर्मित एनीमेटेड आइकन
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
not_static_icons | animated icons for FlutterSeamlessly animated Flutter icons — no Rive or Lottie required. Made with Lucide icons inspired by pqoqubbw/icons.
// Simple icon
AirplayIcon()
// Customized icon
AArrowDownIcon(
size: 45,
color: Colors.blue,
animationDuration: Duration(milliseconds: 800),
strokeWidth: 3.0,
hoverColor: Colors.red,
enableTouchInteraction: true,
infiniteLoop: false,
reverseOnExit: false,
)
Use onTap instead of wrapping the icon in GestureDetector:
CheckIcon(
size: 40,
color: Colors.green,
onTap: () {
print('Icon tapped!');
},
)
Use interactive: false and AnimatedIconController for IconButton integration:
class MyWidget extends StatefulWidget {
@override
State<MyWidget> createState() => _MyWidgetState();
}
class _MyWidgetState extends State<MyWidget> {
final _iconController = AnimatedIconController();
@override
Widget build(BuildContext context) {
return IconButton(
onPressed: () {
_iconController.animate(); // Trigger animation
// Your action here
},
icon: HeartIcon(
size: 32,
color: Colors.red,
interactive: false, // Disable internal gesture handlers
controller: _iconController,
),
);
}
}
final _iconController = AnimatedIconController();
InkWell(
onTap: () {
_iconController.animate();
// Your action here
},
child: Padding(
padding: EdgeInsets.all(8),
child: CopyIcon(
size: 24,
interactive: false,
controller: _iconController,
),
),
)
ActivityIcon(
size: 48.0, // Icon size
color: Colors.black87, // Default color
hoverColor: Colors.blue, // Hover color
animationDuration: Duration(milliseconds: 600), // Animation duration
strokeWidth: 2.0, // Stroke width
reverseOnExit: true, // Reverse animation on exit
enableTouchInteraction: true, // Enable touch interaction
infiniteLoop: false, // Enable infinite loop
resetToStartOnComplete: false, // Reset after animation completes
onTap: () {}, // Tap callback
interactive: true, // Enable/disable internal gestures
controller: AnimatedIconController(), // External animation controller
)
| Method | Description |
|---|---|
animate() |
Triggers the animation to play forward |
stop() |
Stops the current animation |
reset() |
Resets the animation to its initial state |
Each icon has its own unique animation:
Contributions are welcome! Please feel free to submit a Pull Request.
[
](mailto:khlebobul@gmail.com)
Icons based on Lucide Icons inspired by pqoqubbw/icons
निर्भरता सूची 4 आइटम
{"sdk":"flutter"}{"sdk":"flutter"}^6.0.0^1.9.1उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗