pattern_background 1.1.3 copy "pattern_background: ^1.1.3" to clipboard
pattern_background: ^1.1.3 copied to clipboard

Create pattern background with diffrent shaps and customized sizes, colors and spacing. Enjoy!

example/example.md

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

  @override
  Widget build(BuildContext context) {
    var c1 = Colors.grey.shade900;
    var c2 = Colors.amber.withOpacity(.5);
    final width=MediaQuery.of(context).size.width;
    final height=MediaQuery.of(context).size.height;
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        backgroundColor: c1,
        body: CustomPaint(
          size: Size(width,height),
          painter: DotPainter(
            dotColor: c2,
            dotRadius: 1,
            spacing: 30,
          ),
        ),
      ),
    );
  }
}

2
likes
160
pub points
44%
popularity

Publisher

unverified uploader

Create pattern background with diffrent shaps and customized sizes, colors and spacing. Enjoy!

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on pattern_background