flutter_particle_bg 1.0.3 copy "flutter_particle_bg: ^1.0.3" to clipboard
flutter_particle_bg: ^1.0.3 copied to clipboard

outdated

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

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; // 背景
7
likes
30
pub points
24%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_particle_bg