From c27cb61b8a258d5175474acc6c227e821ea0cba0 Mon Sep 17 00:00:00 2001 From: srykaran Date: Fri, 13 Mar 2026 11:27:58 +0530 Subject: [PATCH] Improve UI consistency of directory action buttons in Settings screen --- ...tings_page_select_directory_list_tile.dart | 41 ++++++++++++------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/lib/app/modules/settings/views/settings_page_select_directory_list_tile.dart b/lib/app/modules/settings/views/settings_page_select_directory_list_tile.dart index e5d76a6e..73e8e148 100644 --- a/lib/app/modules/settings/views/settings_page_select_directory_list_tile.dart +++ b/lib/app/modules/settings/views/settings_page_select_directory_list_tile.dart @@ -54,15 +54,16 @@ class SettingsPageSelectDirectoryListTile extends StatelessWidget { ), IntrinsicHeight( child: Row( - crossAxisAlignment: CrossAxisAlignment.stretch, children: [ // Reset to Default Button Expanded( - child: TextButton( - style: ButtonStyle( - backgroundColor: WidgetStateProperty.all( - tColors.secondaryBackgroundColor!, + child: OutlinedButton.icon( + style: OutlinedButton.styleFrom( + side: BorderSide(color: tColors.purpleShade!), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12), ), + padding: const EdgeInsets.symmetric(vertical: 12), ), onPressed: () async { if (await controller.getBaseDirectory() == "Default") { @@ -169,7 +170,8 @@ class SettingsPageSelectDirectoryListTile extends StatelessWidget { ); } }, - child: Text( + icon: Icon(Icons.restore, color: tColors.purpleShade, size: 20), + label: Text( SentenceManager( currentLanguage: controller.selectedLanguage.value) @@ -178,24 +180,31 @@ class SettingsPageSelectDirectoryListTile extends StatelessWidget { textAlign: TextAlign.center, softWrap: true, maxLines: 2, - style: TextStyle( + style: GoogleFonts.poppins( color: tColors.purpleShade, + fontSize: TaskWarriorFonts.fontSizeSmall, + fontWeight: FontWeight.w600, ), ), ), ), - const SizedBox(width: 10), + const SizedBox(width: 12), // Change Directory Button Expanded( - child: TextButton( - style: ButtonStyle( - backgroundColor: WidgetStateProperty.all( - tColors.secondaryBackgroundColor!, + child: ElevatedButton.icon( + style: ElevatedButton.styleFrom( + backgroundColor: tColors.purpleShade, + foregroundColor: Colors.white, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12), ), + padding: const EdgeInsets.symmetric(vertical: 12), + elevation: 2, ), onPressed: () => controller.pickDirectory(context), - child: Text( + icon: const Icon(Icons.folder_open, size: 20), + label: Text( SentenceManager( currentLanguage: controller.selectedLanguage.value) @@ -205,7 +214,11 @@ class SettingsPageSelectDirectoryListTile extends StatelessWidget { softWrap: true, maxLines: 2, overflow: TextOverflow.visible, - style: TextStyle(color: tColors.purpleShade), + style: GoogleFonts.poppins( + color: Colors.white, + fontSize: TaskWarriorFonts.fontSizeSmall, + fontWeight: FontWeight.w600, + ), ), ), ),