kopia lustrzana https://gitlab.com/mysocialportal/relatica
Rearrange profile buttons so that (un)follow and (un)block are on separate line
rodzic
3b1575a64f
commit
1787bb4f7e
|
@ -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,
|
||||
|
|
Ładowanie…
Reference in New Issue