flutter_modern_backgrounds 0.0.3 flutter_modern_backgrounds: ^0.0.3 copied to clipboard
Modern backgrounds for flutter apps
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],
),
),
);
}
}