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

Update RichText default theme and textScaleFactor #9

Closed
Aoi-hosizora opened this issue Jan 4, 2021 · 1 comment
Closed

Update RichText default theme and textScaleFactor #9

Aoi-hosizora opened this issue Jan 4, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Aoi-hosizora
Copy link
Owner

Aoi-hosizora commented Jan 4, 2021

Add textScaleFactor field for RichText in GroupText.

And try to change to default textTheme for RichText.

See https://github.com/Aoi-hosizora/manhuagui_flutter/blob/master/lib/page/view/multilink_text.dart#L36.

@Aoi-hosizora Aoi-hosizora added the enhancement New feature or request label Jan 4, 2021
@Aoi-hosizora
Copy link
Owner Author

Done.

final double textScaleFactor;
var textSpan = TextSpan(
  text: '',
  style: widget.style ?? DefaultTextStyle.of(context),
  children: spans..add(TextSpan(text: ' ')),
);

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

No branches or pull requests

1 participant