Skip to content

Please Enhance the Scalability to Apply Also to RichText #1

Closed

Description

@hajiung25

Hello, I am currently making good use of the package you've provided. However, when specifying styles for each character using RichText and TextSpan, I cannot use XtyleText, and it is inconvenient to have to insert the font family manually for each one. Is there a solution for this case, or do you have any plans to upgrade the package in the future?

Activity

  1. self-assigned this
    on Feb 27, 2024
  2. TykanN commented on Feb 27, 2024

    @TykanN
    Owner

    You can use XtyleText.rich constructor.
    However, I have confirmed that the 0.1.3 version of the Xtyle.rich widget is not working as intended.
    from version 0.2.0, You can use it the same way as Text.rich.

    XtyleText.rich(
                    TextSpan(
                      text: 'Hello',
                      children: [
                        TextSpan(text: ' 안녕', style: TextStyle(color: Colors.red)),
                        TextSpan(text: ' World', style: TextStyle(color: Colors.blue)),
                      ],
                      style: TextStyle(fontWeight: FontWeight.bold),
                    ),
                    style: TextStyle(fontSize: 24), // default text style
                  )
    
  3. pinned this issue on Feb 27, 2024
  4. TykanN commented on Feb 27, 2024

    @TykanN
    Owner

    위 방식에 문제가 있거나 해결되지 않는 케이스가 있다면 언제든지 이슈 다시 열어주세요 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions