color_parser 0.0.2 color_parser: ^0.0.2 copied to clipboard
A package to parse the color. Parse the color and then you can get different values of color such as RGB, HSL, HWB, HEXcode, color name, Ncol, etc. It is inspired by the JS library https://www.w3schoo [...]
import 'package:flutter/material.dart';
import 'example.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Example',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
// use the light theme mode always
themeMode: ThemeMode.light,
home: Example(),
);
}
}