- Removed color extension

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
This commit is contained in:
Hans Kokx
2024-10-30 10:13:30 +01:00
parent 485f5863aa
commit 9f8d85f543
6 changed files with 5 additions and 35 deletions
-7
View File
@@ -1,7 +1,6 @@
// ignore_for_file: avoid_print
import "package:arcane_helper_utils/arcane_helper_utils.dart";
import "package:pure_dart_ui/pure_dart_ui.dart";
void main() {
// DateTime
@@ -36,10 +35,4 @@ void main() {
const String lowercase = "hello";
final String capitalized = lowercase.capitalize;
print(capitalized); // "Hello"
// Color
const Color myColor = Color.fromARGB(255, 153, 97, 227);
final Color luminanceBasedcolor =
myColor.isDark ? const Color(0xff000000) : const Color(0xffffffff);
print(luminanceBasedcolor); // Color(0xff000000)
}