Skip to content

Commit

Permalink
Merge pull request #383 from rohansen856/sidebar_ui
Browse files Browse the repository at this point in the history
enhancement: Improved the Sidebar UI
  • Loading branch information
BrawlerXull authored Nov 21, 2024
2 parents 8e13287 + aa00c5f commit 68d636e
Showing 1 changed file with 28 additions and 22 deletions.
50 changes: 28 additions & 22 deletions lib/app/modules/home/views/filter_drawer_home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,32 +135,38 @@ class FilterDrawer extends StatelessWidget {
Container(
decoration: BoxDecoration(
color: tileColor,
borderRadius: BorderRadius.circular(2),
borderRadius: BorderRadius.circular(8),
border: Border.all(color: TaskWarriorColors.borderColor),
),
child: Padding(
padding: const EdgeInsets.all(8.0),
child: GestureDetector(
onTap: filters.toggleWaitingFilter,
child: Text(
!filters.waitingFilter
? SentenceManager(
currentLanguage:
homeController.selectedLanguage.value)
.sentences
.filterDrawerShowWaiting
: SentenceManager(
currentLanguage:
homeController.selectedLanguage.value)
.sentences
.filterDrawerHideWaiting,
style: TextStyle(
fontFamily: FontFamily.poppins,
fontSize: TaskWarriorFonts.fontSizeMedium,
color: AppSettings.isDarkMode
? TaskWarriorColors.kprimaryTextColor
: TaskWarriorColors.kLightSecondaryTextColor,
)),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
!filters.waitingFilter
? SentenceManager(
currentLanguage:
homeController.selectedLanguage.value)
.sentences
.filterDrawerShowWaiting
: SentenceManager(
currentLanguage:
homeController.selectedLanguage.value)
.sentences
.filterDrawerHideWaiting,
style: TextStyle(
fontFamily: FontFamily.poppins,
fontSize: TaskWarriorFonts.fontSizeMedium,
color: AppSettings.isDarkMode
? TaskWarriorColors.kprimaryTextColor
: TaskWarriorColors.kLightSecondaryTextColor,
)),
Switch(
value: filters.waitingFilter,
onChanged: (_) => filters.toggleWaitingFilter(),
)
],
),
),
),
Expand Down

0 comments on commit 68d636e

Please sign in to comment.