Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TalkDialog.show() isn't changing character #224

Closed
TaylorHo opened this issue Feb 15, 2022 · 2 comments
Closed

TalkDialog.show() isn't changing character #224

TaylorHo opened this issue Feb 15, 2022 · 2 comments

Comments

@TaylorHo
Copy link
Contributor

The TalkDialog.show() needs a saylist array/list as parameter, but when more than one Say() is passed and you change the person property of the Say(), the text changes, but the person not.

Example:

TalkDialog.show(
      context,
      [
        Say(
            text: [
              const TextSpan(
                  text: 'Some Text One'),
            ],
            person: SizedBox(
              child: CharacterOneWidget(),
              height: 100,
              width: 100,
            )),
        Say(
            text: [
              const TextSpan(text: 'Some Text Two'),
            ],
            person: SizedBox(
              child: CharacterTwoWidget(),
              height: 100,
              width: 100,
            ),
            personSayDirection: PersonSayDirection.LEFT),
      ]
    );

In this case, the dialog will be "Some Text One" (first) and then "Some Text Two" (second), it's ok, but the character doesn't change. In booth dialogs, the rendered character will be the "CharacterOneWidget".

@RafaelBarbosatec
Copy link
Owner

Thanks for reporting!
I will take a look this problem.

@RafaelBarbosatec
Copy link
Owner

Hi @TaylorHo !
Bug fixed! This correction will be available in next version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants