flutter_color 2.1.0 copy "flutter_color: ^2.1.0" to clipboard
flutter_color: ^2.1.0 copied to clipboard

Flutter plugin for works with colors schemes like a hex, hsl, xyz and cielab

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:flutter_color/flutter_color.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) => MaterialApp(
        home: Scaffold(
          body: SafeArea(
            child: Padding(
              padding: EdgeInsets.all(64),
              child: Column(
                children: <Widget>[
                  Text(
                    'hex',
                    style: TextStyle(color: HexColor('#ff0000')),
                  ),
                  Text(
                    'hsl',
                    style: TextStyle(color: HslColor(120, 100, 50)),
                  ),
                  Text(
                    'xyz',
                    style: TextStyle(color: XyzColor(14.31, 6.06, 71.42)),
                  ),
                  Text(
                    'cielab',
                    style: TextStyle(color: CielabColor(36.80, 55.20, -95.61)),
                  ),
                ],
              ),
            ),
          ),
        ),
      );
}
24
likes
160
pub points
89%
popularity

Publisher

verified publisherserge.software

Flutter plugin for works with colors schemes like a hex, hsl, xyz and cielab

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_color