Skip to content

Commit

Permalink
Update build_classes.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
jaivsh authored Aug 10, 2023
1 parent 4a29867 commit ded68b2
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions lib/widgets/build_classes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,31 +128,32 @@ class _BuildClassesState extends State<BuildClasses> {
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<Classes>(
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<Classes>(
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
Expand Down Expand Up @@ -354,4 +355,4 @@ class _BuildClassesState extends State<BuildClasses> {
void _launchURL(String url) async => await canLaunchUrl(Uri.parse(url))
? await launchUrl(Uri.parse(url))
: throw 'Could not launch $url';
}
}

0 comments on commit ded68b2

Please sign in to comment.