Skip to content

Commit

Permalink
Merge pull request #421 from jaivsh/fifth
Browse files Browse the repository at this point in the history
Removed dual calenders in build_classes screen
  • Loading branch information
avinashkranjan authored Aug 10, 2023
2 parents a0e0000 + ded68b2 commit cc1677a
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 cc1677a

Please sign in to comment.