chore: don't show practice tooltip if mode is complete (#5108)
This commit is contained in:
parent
ea3c1d7a6a
commit
1b6dd5bd3f
1 changed files with 12 additions and 3 deletions
|
|
@ -454,9 +454,18 @@ class MessageSelectionPositionerState extends State<MessageSelectionPositioner>
|
|||
listenable:
|
||||
widget.overlayController.practiceController,
|
||||
builder: (context, _) {
|
||||
final instruction = widget.overlayController
|
||||
.practiceController.practiceMode.instruction;
|
||||
if (instruction != null) {
|
||||
final practice =
|
||||
widget.overlayController.practiceController;
|
||||
|
||||
final instruction =
|
||||
practice.practiceMode.instruction;
|
||||
|
||||
final type =
|
||||
practice.practiceMode.associatedActivityType;
|
||||
final complete = type != null &&
|
||||
practice.isPracticeActivityDone(type);
|
||||
|
||||
if (instruction != null && !complete) {
|
||||
return InstructionsInlineTooltip(
|
||||
instructionsEnum: widget
|
||||
.overlayController
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue