starsview 0.0.2 copy "starsview: ^0.0.2" to clipboard
starsview: ^0.0.2 copied to clipboard

AnimatedStarsView for Flutter. The widget provides a view with an animated starry night sky effect.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:starsview/starsview.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: SafeArea(
          child: Stack(
            children: <Widget>[
              Container(
                decoration: const BoxDecoration(
                  gradient: LinearGradient(
                    begin: Alignment.topRight,
                    end: Alignment.bottomLeft,
                    colors: <Color>[
                      Colors.red,
                      Colors.blue,
                    ],
                  )
                )
              ),
              StarsView(
                fps: 60,
              )
            ],
          ),
        ),
      ),
    );
  }

}
25
likes
140
points
144
downloads

Publisher

unverified uploader

Weekly Downloads

AnimatedStarsView for Flutter. The widget provides a view with an animated starry night sky effect.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on starsview