Skip to content

The page implements the particle background effect(页面实现粒子背景效果)

License

Notifications You must be signed in to change notification settings

mjronlines/flutter_particle_background

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_particle_bg

pub package

The page implements the particle background effect(页面实现粒子背景效果)

Demo

Usage

  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text(widget.title),
        ),
        body: MooooooBackground(
          child: ListView(
            children: [
              Text('列表元素'),
              Container(
                height: 500,
                color: Colors.red[200].withOpacity(0.6),
                margin: EdgeInsets.fromLTRB(20, 30, 20, 30),
                alignment: Alignment.center,
                child: Text('这是列表元素'),
              )
            ],
          ),
        ));
  }

相关参数

  double pointsize; // 点大小
  Color pointcolor; // 点颜色
  double linewidth; // 线宽度
  Color linecolor; // 线颜色
  double pointnumber; // 圆点数量
  double distancefar; //划线距离
  Color backgroundcolor; // 粒子位置背景
  double pointspeed; // 粒子运行速度
  AssetImage bgimg; // 背景

About

The page implements the particle background effect(页面实现粒子背景效果)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages