Update example

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2025-04-30 14:52:41 +02:00
parent 1eab50b0f5
commit 2f18c4213f
2 changed files with 41 additions and 6 deletions
+20 -3
View File
@@ -263,7 +263,14 @@ class _HomeScreenState extends State<HomeScreen> {
);
},
child: Container(
color: colors[index],
decoration: BoxDecoration(
color: colors[index],
border: Arcane.theme.currentTheme
.colorScheme.primary.name ==
colors[index].name
? Border.all(width: 2)
: null,
),
width: 20,
height: 20,
),
@@ -516,12 +523,22 @@ class _HomeScreenState extends State<HomeScreen> {
Arcane.log(
"Set a color in FavoriteColorService",
metadata: {
"color": colors[index].name,
"color":
colors[index].name ?? "Unknown",
},
);
},
child: Container(
color: colors[index],
decoration: BoxDecoration(
color: colors[index],
border: ArcaneService.ofType<
FavoriteColorService>(
context,
)?.myFavoriteColor?.name ==
colors[index].name
? Border.all(width: 2)
: null,
),
width: 20,
height: 20,
),