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

🎨 Color constants represented by color names from colornames.org.

example/lib/main.dart

import 'package:colorz/colorz.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final colorz = {
      'tardis': Colorz.tardis,
      'driedToothpaste': Colorz.driedToothpaste,
      'greenBanana': Colorz.greenBanana,
      'cookieMonsterCottonCandy': Colorz.cookieMonsterCottonCandy,
      'unoReverseCardBlue': Colorz.unoReverseCardBlue,
      'darkRavenclawBlue': Colorz.darkRavenclawBlue,
      'arabicaMint': Colorz.arabicaMint,
      'pickleyCactus': Colorz.pickleyCactus,
      'margesHair': Colorz.margesHair,
    };

    return MaterialApp(
      home: Scaffold(
        body: Column(
          crossAxisAlignment: CrossAxisAlignment.stretch,
          children: [
            for (final entry in colorz.entries)
              Expanded(
                child: Container(
                  alignment: Alignment.center,
                  color: entry.value,
                  child: SelectableText(entry.key),
                ),
              )
          ],
        ),
      ),
    );
  }
}
14
likes
50
pub points
0%
popularity

Publisher

unverified uploader

🎨 Color constants represented by color names from colornames.org.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

archive, console, dartx, flutter, http, intl, mustache

More

Packages that depend on colorz