star_trail 1.0.0
star_trail: ^1.0.0 copied to clipboard
A Flutter package for creating a star trails animation effect with circular motion, fading inner radii, and shorter trails near the center.
StarTrail #
A Flutter widget that creates a star trails animation effect with circular motion, fading inner radii, and shorter trails near the center.
Usage #
Add the star_trail.dart file to your project and use it as follows:
import 'package:flutter/material.dart';
import 'star_trail.dart'; // Import the file
void main() {
runApp(MaterialApp(
home: Scaffold(
body: StarTrail(),
),
));
}
Number of Stars: 250 (customizable via numberOfStars)
Duration: 180 seconds for one full rotation
Fading Effect: Inner 10% of stars fade in opacity and have shorter trails
By Lakshman Turlapati