Skip to content

Commit

Permalink
ui of appbar in notes screen (Second Child) improved+++
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-khewle committed Jul 13, 2024
1 parent 9f3a2c5 commit e879ff5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/new_ui/screens/notes_screen/widgets/notes_filter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class _NotesFilterBarState extends ConsumerState<NotesFilterBar>
style: Theme.of(context)
.textTheme
.labelMedium!
.copyWith(color: activeButton ? Colors.white : Colors.black),
.copyWith(color: activeButton ? Colors.white : Colors.white),
),
style: ButtonStyle(
// shape: MaterialStateProperty.all<RoundedRectangleBorder>(
Expand All @@ -65,11 +65,9 @@ class _NotesFilterBarState extends ConsumerState<NotesFilterBar>
(Set<MaterialState> states) {
// Change color based on the selection
if (activeButton) {
return Theme.of(context)
.colorScheme
.primaryContainer; // Selected color
return cardcolorblue; // Selected color
}
return Colors.white; // Default color
return timePickerBorder; // Default color
},
),
),
Expand Down Expand Up @@ -196,7 +194,7 @@ class _NotesFilterBarState extends ConsumerState<NotesFilterBar>

decoration: BoxDecoration(
borderRadius: BorderRadius.circular(18),
color: timePickerBorder,
color: timePickerBg,
border: Border.all(color: timePickerBorder, width: 1.0), // Change the color and width as needed
// boxShadow: isItDarkMode
// ? shadowLightModeTextFields
Expand Down Expand Up @@ -238,7 +236,7 @@ class _NotesFilterBarState extends ConsumerState<NotesFilterBar>
),
const Divider(
thickness: 1,
color: Colors.grey,
color: timePickerBorder,
),
user.isStudent && allSubjects.isNotEmpty
? Column(
Expand Down

0 comments on commit e879ff5

Please sign in to comment.