Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Hareesh-Nandigrama committed Jul 27, 2023
1 parent 09111f2 commit 849f2b5
Showing 1 changed file with 45 additions and 43 deletions.
88 changes: 45 additions & 43 deletions lib/pages/timetable/timetable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,53 +34,55 @@ class _TimeTableTabState extends State<TimeTableTab> {
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
TextButton(
onPressed: () {
(context.read<TimetableStore>().setTT());
},
child: ClipRRect(
borderRadius: const BorderRadius.all(
Radius.circular(40),
),
child: Container(
height: 32,
width: 140,
color: (context.read<TimetableStore>().isTimetable)
? lBlue2
: kGrey2,
child: Center(
child: Text("Timetable",
style: (context
.read<TimetableStore>()
.isTimetable)
? MyFonts.w500.setColor(kBlueGrey)
: MyFonts.w500.setColor(kWhite)),
Expanded(
child: TextButton(
onPressed: () {
(context.read<TimetableStore>().setTT());
},
child: ClipRRect(
borderRadius: const BorderRadius.all(
Radius.circular(40),
),
child: Container(
height: 32,
color: (context.read<TimetableStore>().isTimetable)
? lBlue2
: kGrey2,
child: Center(
child: Text("Timetable",
style: (context
.read<TimetableStore>()
.isTimetable)
? MyFonts.w500.setColor(kBlueGrey)
: MyFonts.w500.setColor(kWhite)),
),
),
),
),
),
TextButton(
onPressed: () {
(context.read<TimetableStore>().setTT());
},
child: ClipRRect(
borderRadius: const BorderRadius.all(
Radius.circular(40),
),
child: Container(
height: 32,
width: 140,
color: !(context.read<TimetableStore>().isTimetable)
? lBlue2
: kGrey2,
child: Center(
child: Text(
"Schedule",
style: !(context
.read<TimetableStore>()
.isTimetable)
? MyFonts.w500.setColor(kBlueGrey)
: MyFonts.w500.setColor(kWhite),
Expanded(
child: TextButton(
onPressed: () {
(context.read<TimetableStore>().setTT());
},
child: ClipRRect(
borderRadius: const BorderRadius.all(
Radius.circular(40),
),
child: Container(
height: 32,
color: !(context.read<TimetableStore>().isTimetable)
? lBlue2
: kGrey2,
child: Center(
child: Text(
"Schedule",
style: !(context
.read<TimetableStore>()
.isTimetable)
? MyFonts.w500.setColor(kBlueGrey)
: MyFonts.w500.setColor(kWhite),
),
),
),
),
Expand Down

0 comments on commit 849f2b5

Please sign in to comment.