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

Create Pattern Backgrounds

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);
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        backgroundColor: c1,
        body: CustomPaint(
          size: Size(
            MediaQuery.of(context).size.width,
            MediaQuery.of(context).size.height /
                2, // you can remove " /2 " to cover the whole screen
          ),
          painter: DotPainter(
            dotColor: c2,
            dotRadius: 1,
            spacing: 30,
          ),
        ),
      ),
    );
  }
}
``
2
likes
0
pub points
44%
popularity

Publisher

unverified uploader

Create Pattern Backgrounds

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on pattern_background