From 85270d2a62d193e9c6e6a5c24ac7aa430296dba4 Mon Sep 17 00:00:00 2001 From: Dedyk Suntoro Atmojo <39944254+dedyksuntoro@users.noreply.github.com> Date: Tue, 14 May 2024 22:35:56 +0700 Subject: [PATCH] Update neumorphic_card.dart Fix Error: The getter 'backgroundColor' isn't defined for the class 'ThemeData'. --- lib/neumorphic_package_by_serge_software/neumorphic_card.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/neumorphic_package_by_serge_software/neumorphic_card.dart b/lib/neumorphic_package_by_serge_software/neumorphic_card.dart index b03cd343..6f0c2884 100644 --- a/lib/neumorphic_package_by_serge_software/neumorphic_card.dart +++ b/lib/neumorphic_package_by_serge_software/neumorphic_card.dart @@ -54,7 +54,7 @@ class NeumorphicContainer extends StatelessWidget { @override Widget build(final BuildContext context) { - final color = decoration.color ?? Theme.of(context).backgroundColor; + final color = decoration.color ?? Theme.of(context).scaffoldBackgroundColor; final emboss = curveType == CurveType.emboss; Color colorValue = color;