additional logic to showing of it inline tooltip
This commit is contained in:
parent
310d2b303c
commit
5b4bcb5acc
1 changed files with 11 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue