mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-08 22:52:02 -05:00
[PR #93] [MERGED] [core] Fix Index Reset for Tabs in Small Deck Layout #94
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/93
Author: @ricoberger
Created: 12/1/2023
Status: ✅ Merged
Merged: 12/1/2023
Merged by: @ricoberger
Base:
main← Head:core-fix-index-reset-for-tabs-in-small-deck-layout📝 Commits (1)
d22a372[core] Fix Index Reset for Tabs in Small Deck Layout📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
app/lib/widgets/deck/deck_layout_small.dart(+1 -0)📄 Description
The index was not reset in the
DeckLayoutSmallwidget, when the user selected a new deck in the settings widget. This was caused because theDefaultTabControllerwas not rebuild after a new deck was selected, so that theinitialIndexvalue was not used.This is now fixed by adding a
keyto theDefaultTabController, which corresponds to the selected deck. This means if the user selects a new deck in the settings the widget will be rebuild and the initial selected tab will be the first one. If a user selects the same deck or switches between the small and large layout the tab will be the formerly selected one.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.