diff --git a/lib/core/custom_theme.dart b/lib/core/custom_theme.dart index 16e9585..def7379 100644 --- a/lib/core/custom_theme.dart +++ b/lib/core/custom_theme.dart @@ -8,6 +8,19 @@ class CustomTheme { static Color onBoxColor = const Color(0xFF181818); static Color boxBorder = const Color(0xFF272727); + static BoxDecoration standardBoxDecoration = BoxDecoration( + color: CustomTheme.boxColor, + border: Border.all(color: CustomTheme.boxBorder), + borderRadius: BorderRadius.circular(12), + ); + + static BoxDecoration highlightedBoxDecoration = BoxDecoration( + color: CustomTheme.boxColor, + border: Border.all(color: Colors.blue), + borderRadius: BorderRadius.circular(12), + boxShadow: [BoxShadow(color: Colors.blue.withAlpha(120), blurRadius: 12)], + ); + static AppBarTheme appBarTheme = AppBarTheme( backgroundColor: backgroundColor, foregroundColor: Colors.white, diff --git a/lib/presentation/widgets/tiles/group_tile.dart b/lib/presentation/widgets/tiles/group_tile.dart index 8627b0e..248c1c6 100644 --- a/lib/presentation/widgets/tiles/group_tile.dart +++ b/lib/presentation/widgets/tiles/group_tile.dart @@ -15,19 +15,8 @@ class GroupTile extends StatelessWidget { margin: const EdgeInsets.symmetric(horizontal: 12, vertical: 10), padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 10), decoration: isHighlighted - ? BoxDecoration( - color: CustomTheme.boxColor, - border: Border.all(color: Colors.blue), - borderRadius: BorderRadius.circular(12), - boxShadow: [ - BoxShadow(color: Colors.blue.withAlpha(120), blurRadius: 12), - ], - ) - : BoxDecoration( - color: CustomTheme.boxColor, - border: Border.all(color: CustomTheme.boxBorder), - borderRadius: BorderRadius.circular(12), - ), + ? CustomTheme.highlightedBoxDecoration + : CustomTheme.standardBoxDecoration, duration: const Duration(milliseconds: 150), child: Column( crossAxisAlignment: CrossAxisAlignment.start,