additional logic to showing of it inline tooltip

pull/1398/head
William Jordan-Cooley 1 year ago
parent 310d2b303c
commit 5b4bcb5acc

@ -114,8 +114,7 @@ class ITBarState extends State<ITBar> {
// const SizedBox(height: 40.0),
OriginalText(controller: itController),
const SizedBox(height: 7.0),
if (!InstructionsEnum.translationChoices
.toggledOff(context))
if (showTranslationsChoicesTooltip)
InlineTooltip(
instructionsEnum:
InstructionsEnum.translationChoices,
@ -167,6 +166,16 @@ class ITBarState extends State<ITBar> {
),
);
}
bool get showTranslationsChoicesTooltip {
return !itController.choreographer.isFetching &&
!itController.isLoading &&
!itController.isEditingSourceText &&
!itController.isTranslationDone &&
itController.currentITStep != null &&
itController.currentITStep!.continuances.isNotEmpty &&
!itController.showChoiceFeedback;
}
}
class ChoiceFeedbackText extends StatelessWidget {

Loading…
Cancel
Save