Description

This library is a very simple color palette library. We have added 80 colors that we consider somewhat basic. You can use it to choose a color from the 80 colors to add it as a color for the element.

Usage

use example:


class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});
  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  Color color = Colors.black;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: [
          ChooseColor(
            color: color,
            onColor: (c) => setState(() => color = c),
          ),
          Container(
            height: 50,
            width: 250,
            color: color,
          )
        ],
      ),
    );
  }
}

Libraries

color_spark_3u