Skip to content

A Flutter widget that creates a star trails animation effect with circular motion, fading inner radii, and shorter trails near the center.

License

Notifications You must be signed in to change notification settings

LakshmanTurlapati/Star-Trail-Flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StarTrail

pub package pub points likes license Flutter Dart

A Flutter widget that creates a star trails animation effect with circular motion, fading inner radii, and shorter trails near the center.

Installation

Use this package as a library

Depend on it

Run this command:

With Flutter:

$ flutter pub add star_trail

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  star_trail: ^1.0.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:star_trail/star_trail.dart';

Usage

Add the star_trail.dart file to your project and use it as follows:

import 'package:flutter/material.dart';
import 'package:star_trail/star_trail.dart'; // Import the package

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      body: StarTrail(),
    ),
  ));
}

Features

  • 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

Package Information


By Lakshman Turlapati

About

A Flutter widget that creates a star trails animation effect with circular motion, fading inner radii, and shorter trails near the center.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages