fix(ui): Conditionally set watch state string

This commit is contained in:
PapaTutuWawa 2023-02-06 15:34:15 +01:00
parent 8712dbb9de
commit 64bc2821f9

View File

@ -68,7 +68,9 @@ class DetailsPage extends StatelessWidget {
), ),
DropdownSelector<MediumTrackingState>( DropdownSelector<MediumTrackingState>(
title: 'Watchstate', title: state.trackingType == TrackingMediumType.anime ?
'Watch state' :
'Read state',
onChanged: (MediumTrackingState newState) { onChanged: (MediumTrackingState newState) {
if (state.trackingType == TrackingMediumType.anime) { if (state.trackingType == TrackingMediumType.anime) {
context.read<DetailsBloc>().add( context.read<DetailsBloc>().add(