Color Converter is a simple tool for converting color formats. It returns the color converted to the specified format.
This is the Dart/Flutter client for the Color Converter API.
Add this to your pubspec.yaml:
dependencies:
apiverve_colorconverter: ^1.1.14Then run:
dart pub get
# or for Flutter
flutter pub getimport 'package:apiverve_colorconverter/apiverve_colorconverter.dart';
void main() async {
final client = ColorconverterClient('YOUR_API_KEY');
try {
final response = await client.execute({
'hex': 'FF0000'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}{
"status": "ok",
"error": null,
"data": {
"hex": "#FF0000",
"rgb": "255, 0, 0",
"hsl": "0, 100, 50",
"cmyk": "0, 100, 100, 0",
"ansi16": 91,
"name": "red",
"channels": {
"rgbChannels": 3,
"cmykChannels": 4,
"ansiChannels": 1,
"hexChannels": 1,
"hslChannels": 3
}
}
}- API Home: Color Converter API
- Documentation: docs.apiverve.com/ref/colorconverter
All requests require an API key. Get yours at apiverve.com.
MIT License - see LICENSE for details.
Built with Dart for APIVerve