native_color 1.2.0+1 copy "native_color: ^1.2.0+1" to clipboard
native_color: ^1.2.0+1 copied to clipboard

discontinued

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:native_color/native_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)),
                  ),
                ],
              ),
            ),
          ),
        ),
      );
}
1
likes
30
pub points
42%
popularity

Publisher

verified publisherscer.io

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

Homepage
Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on native_color