ral_color 0.0.2 ral_color: ^0.0.2 copied to clipboard
This package will allow you to convert RAL colors to MaterialColors, RGB, Hexadecimal, CMJN ...
import 'package:example/view/color_ral_view.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Demo Ral Color',
theme: ThemeData(),
darkTheme: ThemeData(),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return const SingleChildScrollView(
padding: EdgeInsets.all(20.0),
child: ColorView(),
);
}
}