Every time I need to style text in Flutter, it always feels like reinventing the wheel. I’ve written about styled text before, but this will be a quick-reference article just related to using text spans.
Text vs RichText vs Text.rich
If your entire text uses the same style, you should use a Text widget combined with a TextStyle:
Although you can make any sort of branching tree you like with TextSpan, the only sane way I know to create one is to have a single parent TextSpan with a list of child spans that each include a substring with its accompanying style.