mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-09 07:02:01 -05:00
[PR #53] [MERGED] [core] Improve Tabs Handling in Small Deck Layout #57
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/feeddeck/feeddeck/pull/53
Author: @ricoberger
Created: 10/28/2023
Status: ✅ Merged
Merged: 10/28/2023
Merged by: @ricoberger
Base:
main← Head:core-improve-tabs-handling-in-small-deck-layout📝 Commits (1)
b83ffdf[core] Improve Tabs Handling in Small Deck Layout📊 Changes
5 files changed (+75 additions, -8 deletions)
View changed files
📝
app/lib/main.dart(+2 -0)➕
app/lib/repositories/layout_repository.dart(+12 -0)📝
app/lib/widgets/deck/deck_layout_large.dart(+16 -5)📝
app/lib/widgets/deck/deck_layout_small.dart(+36 -0)📝
app/lib/widgets/settings/decks/settings_decks_select.dart(+9 -3)📄 Description
This commit improves the handling of tabs in the samll deck layout. We are now saving the selected tabs index in the newly added "LayoutRepository" so that we can reuse the selected tab when a user switches between the small and large layout. We can now also set the tab which should be initially selected in the large layout when a user selects a column in the navigation rail. Last but not least we can also reset the initial tab index when a user selects a new deck in the settings, so that we always display the first column instead of the column with the same index as it was selected in the previous deck.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.