Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter modern backgrounds

Particles
Rectangle Rain

Install

Add this line to pubspec.yaml

dependencies:
     flutter_modern_backgrounds: ^0.0.2

Import

import 'package:flutter_modern_backgrounds/flutter_modern_backgrounds.dart';

Usage

Particles

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: Particles(
             dotColor: Colors.white,   // optional
             lineColor: Colors.amber, // optional
             bgColor:   Colors.grey   // optional
             size: Size(400, 400),     // optional
            ),
      ),
    );
  }
}

Rectangle Rain

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: RectangleRain(
              colors: [Colors.white, Colors.pink, Colors.yellowAccent, Colors.blueGrey],
            ),
      ),
    );
  }
}

About

Modern backgrounds for flutter apps

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages