lit_starfield 0.0.1 copy "lit_starfield: ^0.0.1" to clipboard
lit_starfield: ^0.0.1 copied to clipboard

outdated

A package to render an animated starfield background.

LitStarfield #

LitStarfield enables you to render an animated starfield to be used as a background for your parent widget.

Visit our website for more details.

Created and maintained by LitLifeSoftware (Michael Grigorenko).

Getting Started #

To use the LitStarfield in your Flutter app make sure to import it by including the code line import 'package:lit_starfield/lit_starfield.dart'; in the header part of your .dart file.

For help getting started with Flutter, view Flutter's online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Apps built with LitStarfield #

Visualize your entire life. Memorize your achievements and make every month count.

alt text

Example #

Create a LitStarfieldBackground object in your parent widget to use it as your background.

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

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          backgroundColor: Colors.black,
          title: Center(
            child: Text(
              "Lit Starfield Demo",
              textAlign: TextAlign.center,
              style: TextStyle(
                color: Colors.white,
              ),
            ),
          ),
        ),
        body: LitStarfieldBackground(),
      ),
    );
  }
}

To get a better understanding for implementing LitStarfield's widgets we recommend to take a look at the example app provided in the example folder. Feel free to experiment with the UI.

License #

The source code is distributed under the BSD 3-Clause license as specified in the LICENSE file.

9
likes
0
pub points
73%
popularity

Publisher

unverified uploader

A package to render an animated starfield background.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on lit_starfield