From fbe602c85f817b645d608ee59c5b0bcc9306e0e6 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Wed, 25 Nov 2020 10:01:52 +0800 Subject: [PATCH] update color --- example/lib/example_style_color.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/example/lib/example_style_color.dart b/example/lib/example_style_color.dart index 5edc661..059ca73 100644 --- a/example/lib/example_style_color.dart +++ b/example/lib/example_style_color.dart @@ -15,6 +15,14 @@ class _ExampleStyleColorState extends State { children: [ Text(object.name), Text(object.codeName), + Text( + object.color.toString(), + style: TextStyle( + color: object.color, + backgroundColor: + object.color.value > 0xFFAAAAAA ? Colors.black : Colors.white, + ), + ), Card( color: object.color, child: SizedBox(height: 50.w, width: double.infinity),