Skip to content

Commit

Permalink
Update home_page.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh6045 authored May 25, 2024
1 parent 1e47478 commit 13072e9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ class ProgramOption extends StatelessWidget {

@override
Widget build(BuildContext context) {
final isDarkMode = Theme.of(context).brightness == Brightness.dark;
final borderColor = isDarkMode ? Colors.white : Colors.black45;
return Column(
children: [
GestureDetector(
Expand All @@ -355,7 +357,11 @@ class ProgramOption extends StatelessWidget {
padding: const EdgeInsets.all(20),
decoration: BoxDecoration(
// color: const Color.fromARGB(255, 237, 237, 239),
borderRadius: BorderRadius.circular(15),
borderRadius: BorderRadius.circular(15),
border: Border.all(
width: 1,
color: borderColor,
),
),
child: Row(
children: [
Expand Down

0 comments on commit 13072e9

Please sign in to comment.