diff --git a/lib/pages/access_management/manage_bookable_spaces/presentation/widgets/time_picker_widget.dart b/lib/pages/access_management/manage_bookable_spaces/presentation/widgets/time_picker_widget.dart index 1cb87ebd..b3b1c00f 100644 --- a/lib/pages/access_management/manage_bookable_spaces/presentation/widgets/time_picker_widget.dart +++ b/lib/pages/access_management/manage_bookable_spaces/presentation/widgets/time_picker_widget.dart @@ -8,9 +8,11 @@ import 'package:syncrow_web/utils/color_manager.dart'; import 'package:syncrow_web/utils/constants/assets.dart'; class TimePickerWidget extends StatefulWidget { + final String title; const TimePickerWidget({ super.key, required this.onTimePicked, + required this.title, }); final void Function(TimeOfDay? timePicked) onTimePicked; @@ -45,39 +47,24 @@ class _TimePickerWidgetState extends State { context.read().add(CheckConfigurValidityEvent()); setState(() {}); }, - child: Row( - children: [ - Container( - width: 56, - height: 32, - decoration: const BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.only( - topLeft: Radius.circular(10), - bottomLeft: Radius.circular(10), - ), - ), - alignment: Alignment.center, - child: SvgPicture.asset(Assets.clockIcon), + child: Container( + width: 100, + height: 32, + decoration: const BoxDecoration( + borderRadius: BorderRadius.only( + topRight: Radius.circular(10), + bottomRight: Radius.circular(10), ), - Container( - width: 120, - height: 32, - decoration: const BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.only( - topRight: Radius.circular(10), - bottomRight: Radius.circular(10), - ), - ), - alignment: Alignment.centerLeft, - padding: const EdgeInsets.symmetric(horizontal: 8), - child: Text( - timePicked == null ? 'HH:MM' : timePicked!.format(context), - style: const TextStyle(color: Color(0xB2D5D5D5)), - ), + ), + alignment: Alignment.centerLeft, + padding: const EdgeInsets.symmetric(horizontal: 8), + child: Text( + timePicked == null ? widget.title : timePicked!.format(context), + style: TextStyle( + color: ColorsManager.blackColor.withValues(alpha: 0.4), + fontSize: 12, ), - ], + ), ), ); }