From ded68b205b03a05df08ade7b22a206579388f49e Mon Sep 17 00:00:00 2001 From: Jaivardhan Shukla <93859359+jaivsh@users.noreply.github.com> Date: Thu, 10 Aug 2023 14:02:30 +0530 Subject: [PATCH] Update build_classes.dart --- lib/widgets/build_classes.dart | 41 +++++++++++++++++----------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/lib/widgets/build_classes.dart b/lib/widgets/build_classes.dart index 569e00fd7d..5106e6add2 100644 --- a/lib/widgets/build_classes.dart +++ b/lib/widgets/build_classes.dart @@ -128,31 +128,32 @@ class _BuildClassesState extends State { return SingleChildScrollView( child: Column( children: [ + Card(shape: RoundedRectangleBorder( - borderRadius: BorderRadius.all(Radius.circular(20)) - ),color: Colors.white12, + borderRadius: BorderRadius.all(Radius.circular(20)) + ),color: Colors.white12, child: - TableCalendar( - onFormatChanged: (format) {}, - firstDay: DateTime.utc(2002), - lastDay: DateTime.utc(2024), - focusedDay: _focusedDay, - selectedDayPredicate: (day) => isSameDay(_selectedDay, day), - eventLoader: _getEventsForDay, - onDaySelected: _onDaySelected, - - calendarStyle: CalendarStyle( - disabledTextStyle: TextStyle(color: Colors.white), - weekNumberTextStyle: TextStyle(color: Theme.of(context).primaryColor), - markerDecoration: BoxDecoration( - shape: BoxShape.circle, - color: Colors.amber, + TableCalendar( + onFormatChanged: (format) {}, + firstDay: DateTime.utc(2002), + lastDay: DateTime.utc(2024), + focusedDay: _focusedDay, + selectedDayPredicate: (day) => isSameDay(_selectedDay, day), + eventLoader: _getEventsForDay, + onDaySelected: _onDaySelected, + + calendarStyle: CalendarStyle( + disabledTextStyle: TextStyle(color: Colors.white), + weekNumberTextStyle: TextStyle(color: Theme.of(context).primaryColor), + markerDecoration: BoxDecoration( + shape: BoxShape.circle, + color: Colors.amber, + ), ), - ), - ),), + ),), classesList != null && classesList.isNotEmpty @@ -354,4 +355,4 @@ class _BuildClassesState extends State { void _launchURL(String url) async => await canLaunchUrl(Uri.parse(url)) ? await launchUrl(Uri.parse(url)) : throw 'Could not launch $url'; -} \ No newline at end of file +}