TF-2040 Add date icon background color to styles

(cherry picked from commit 3360bc9c91065f299f56ba07fa49c0e82f2a6e11)
This commit is contained in:
dab246
2023-07-28 09:01:21 +07:00
committed by Dat Vu
parent 1a54ca3d86
commit f287af8c37
2 changed files with 6 additions and 2 deletions
@@ -1,8 +1,12 @@
import 'package:core/presentation/extensions/color_extension.dart';
import 'package:flutter/material.dart';
class CalendarEventInformationWidgetStyles {
static const double borderRadius = 16;
static const double contentPadding = 16;
static const double verticalMargin = 12;
static const double horizontalMargin = 16;
static const double calendarDateIconMargin = 16;
static const Color calendarDateIconBackgroundColor = AppColor.colorCalendarEventInformationBackground;
}
@@ -39,7 +39,7 @@ class CalendarEventInformationWidget extends StatelessWidget {
children: [
Container(
padding: const EdgeInsets.all(CalendarEventInformationWidgetStyles.calendarDateIconMargin),
color: Colors.black.withOpacity(0.04),
color: CalendarEventInformationWidgetStyles.calendarDateIconBackgroundColor,
child: CalendarDateIconWidget(
calendarEvent: calendarEvent,
width: double.infinity,
@@ -52,7 +52,7 @@ class CalendarEventInformationWidget extends StatelessWidget {
children: [
Container(
padding: const EdgeInsets.all(CalendarEventInformationWidgetStyles.calendarDateIconMargin),
color: Colors.black.withOpacity(0.04),
color: CalendarEventInformationWidgetStyles.calendarDateIconBackgroundColor,
child: CalendarDateIconWidget(calendarEvent: calendarEvent),
),
Expanded(child: Container(color: Colors.white))