rainbow_container 2.0.0 copy "rainbow_container: ^2.0.0" to clipboard
rainbow_container: ^2.0.0 copied to clipboard

A magical container which changes colors whenever its build method is called.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:rainbow_container/src/rainbow_container.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: RainbowContainer(
            decoration: BoxDecoration(borderRadius: BorderRadius.circular(16)),
            width: 100,
            height: 100,
          ),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () => setState(() {}),
          child: Icon(Icons.refresh),
        ),
      ),
    );
  }
}
15
likes
160
pub points
30%
popularity

Publisher

verified publisherfelangel.dev

A magical container which changes colors whenever its build method is called.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, random_color

More

Packages that depend on rainbow_container