colorify
एक सरल Flutter पैकेज जो दिए गए डायनामिक बीज से निर्धारित, यादृच्छिक रंग उत्पन्न करता है।
🎨 एक सरल Flutter पैकेज जो दिए गए डायनामिक बीज से निर्धारित यादृच्छिक रंग उत्पन्न करता है।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
An extremely simple Flutter package that deterministically converts arbitrary dynamic input into a Color. Published mainly for personal use to avoid reinventing the wheel in my projects.
import 'package:colorify/colorify.dart' as c;
import 'package:flutter/material.dart';
void main() {
final input = 'example-seed';
final color = c.colorify(input);
print(color); // Outputs a Color object deterministically derived from 'example-seed'.
}
You can specify the type of colors generated by using the ColorType enum:
ColorType.all: Generates colors from the full spectrum.ColorType.brights: Generates bright and vibrant colors.Example:
import 'package:colorify/colorify.dart' as c;
import 'package:flutter/material.dart';
void main() {
final input = 'example-seed';
// Generate a color from the full spectrum
final allColors = c.colorify(input, colorType: c.ColorType.all);
// Generate a bright color
final brightColor = c.colorify(input, colorType: c.ColorType.brights);
}
निर्भरता सूची 4 आइटम
{"sdk":"flutter"}^3.0.6{"sdk":"flutter"}^4.0.0उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗