Rearrange profile buttons so that (un)follow and (un)block are on separate line

merge-requests/67/merge
Hank Grabowski 2023-11-16 16:34:21 -05:00
rodzic 3b1575a64f
commit 1787bb4f7e
1 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -26,9 +26,7 @@ class HomeScreen extends StatefulWidget {
class _HomeScreenState extends State<HomeScreen> {
final _logger = Logger('$HomeScreen');
TimelineIdentifiers currentTimeline = const TimelineIdentifiers(
timeline: TimelineType.home,
);
TimelineIdentifiers currentTimeline = TimelineIdentifiers.home();
void updateTimeline(TimelineManager manager) {
_logger.finest('Updating timeline: $currentTimeline');
@ -139,6 +137,10 @@ class _HomeScreenState extends State<HomeScreen> {
))),
];
if (items.where((i) => i.value == currentTimeline).isEmpty) {
currentTimeline = TimelineIdentifiers.home();
}
return DropdownButton<TimelineIdentifiers?>(
value: currentTimeline,
items: items,