From d624f92dc01f34f72e91c0d6125291a2b56112be Mon Sep 17 00:00:00 2001 From: Juan Gilsanz Polo Date: Sun, 3 Mar 2024 17:29:42 +0100 Subject: [PATCH] Added icons --- lib/screens/bookmarks/ui/visualization_modal.dart | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/screens/bookmarks/ui/visualization_modal.dart b/lib/screens/bookmarks/ui/visualization_modal.dart index 3a7e6bc..2495991 100644 --- a/lib/screens/bookmarks/ui/visualization_modal.dart +++ b/lib/screens/bookmarks/ui/visualization_modal.dart @@ -80,8 +80,8 @@ class VisualizationModal extends ConsumerWidget { ), SegmentedButtonSlide( entries: [ - SegmentedButtonSlideEntry(label: t.bookmarks.date), - SegmentedButtonSlideEntry(label: t.bookmarks.title), + SegmentedButtonSlideEntry(label: t.bookmarks.date, icon: Icons.schedule_rounded), + SegmentedButtonSlideEntry(label: t.bookmarks.title, icon: Icons.title_rounded), ], selectedEntry: ref.watch(bookmarksProvider).sortingType.index, onChange: (v) => ref.read(bookmarksProvider.notifier).setSortingType(SortingType.values[v]), @@ -96,8 +96,14 @@ class VisualizationModal extends ConsumerWidget { const SizedBox(height: 16), SegmentedButtonSlide( entries: [ - SegmentedButtonSlideEntry(label: t.bookmarks.descendant), - SegmentedButtonSlideEntry(label: t.bookmarks.ascendant), + SegmentedButtonSlideEntry( + label: t.bookmarks.descendant, + icon: Icons.arrow_downward_rounded, + ), + SegmentedButtonSlideEntry( + label: t.bookmarks.ascendant, + icon: Icons.arrow_upward_rounded, + ), ], selectedEntry: ref.watch(bookmarksProvider).sortingWay.index, onChange: (v) => ref.read(bookmarksProvider.notifier).setSortingWay(SortingWay.values[v]),