From 13072e996a10edc2628d0ff7745a7f62e9b8f13b Mon Sep 17 00:00:00 2001 From: Harsh Langaliya <137603920+harsh6045@users.noreply.github.com> Date: Sat, 25 May 2024 14:01:18 +0530 Subject: [PATCH] Update home_page.dart --- lib/home_page.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/home_page.dart b/lib/home_page.dart index e3d6951..5b3e319 100644 --- a/lib/home_page.dart +++ b/lib/home_page.dart @@ -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( @@ -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: [