A Flutter package to use and convert RAL Colors to MaterialColors, RGB, Hexadecimal, CMJN ...


Add ral_color as a dependency in your pubspec.yaml file.

ral_color: ^0.0.4


For use RAL Colors object by following steps :

import 'package:ral_color/ral_color_theme.dart';

// Import the plugin
import 'package:ral_color/ral_color_theme.dart';

// call initialisation in main 
void main() async {
  await RALColor.initialisation();

  runApp(const MyApp());

//In your class , you can call RALColor like: 
RALColor ralColor = RALColor(numberRalColor: 9016);

//to use Flutter Color:
Color myRalColor = ralColor.toColor();

//to get Name available language: [de,en,fr,es,it,nl] :
String myRalNameEn = ralColor.getName().getNameWithLocal('en');
String myRalNameFr = ralColor.getName().getNameWithLocal('fr'); // if local not avaible, return english name

//if you need more information, you can call RAL specification like :
RAL myRAL = ralColor.getRAL();