krokyze / flutter_seo

Flutter package for SEO support on Web.
MIT License
48 stars 5 forks source link

Usage with other packages #15

Closed chrisbinsunny closed 1 year ago

chrisbinsunny commented 1 year ago

The SEO package could be integrated very well with inbuilt widgets in flutter. But when it comes to third-party packages such as AnimatedText, it is not the case. There is no way to integrate the SEO package with packages. Are there any upcoming releases or workaround for this one?

krokyze commented 1 year ago

The package isn't connected with any inbuilt widgets, you can wrap within Seo.text(...) anything you need. For example for AnimatedText you can do it like this:

Seo.text(
  text: 'AWESOME OPTIMISTIC DIFFERENT',
  child: AnimatedTextKit(
    animatedTexts: [
      RotateAnimatedText('AWESOME'),
      RotateAnimatedText('OPTIMISTIC'),
      RotateAnimatedText('DIFFERENT'),
    ],
  ),
);