Skip to content

[Need HELP] How to update the content of floatingChild #8

Description

@cddqssc

Thank you for providing such a useful plugin.
I want to know how to update the content of floatingChild:
Such as:

                  floatingChild: SizedBox(
                    width: width - 1,
                    height: height / 2.5,
                    child: Container(
                      decoration: BoxDecoration(
                        color: Theme.of(context).primaryColor,
                        borderRadius: BorderRadius.circular(10),
                        border: Border.all(
                          color: Theme.of(context).colorScheme.primary,
                          width: 1.0,
                        ),
                      ),
                      **_child: Text("${str}"),_**
                      //CustomPaint(painter: SpecPainter(context: context)),
                    ),
                  ),

When str has changed and setstate has been called, the str in FloatingOverlay has not changed. The str display is updated only when resize or position is moved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions