forked from zulip/zulip-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
content [nfc]: Make textStylePlainParagraph complete; cut off inherit…
…ance As Greg points out: zulip#698 (comment) > Avoiding `DefaultTextStyle.merge`, in favor of giving some > already-computed style directly, will be good for explicitness as > well as for potentially a small performance gain. Before this, the inheritance via `DefaultTextStyle.merge` made it kind of tiring to work out what plain-paragraph styling actually was. It was looking up to the nearest DefaultTextStyle, which was actually an AnimatedDefaultTextStyle in the Material widget, that was providing Theme.of(context).textTheme.bodyMedium. That, in turn, was built from various things: - [_M3Typography.englishLike] - [Typography.blackCupertino] or [Typography.blackMountainView] (depending on platform) - `zulipTypography` in lib/widgets/text.dart I've followed these sources in writing down this complete style object, to make this a direct, NFC translation.
- Loading branch information
1 parent
b73962f
commit b75908b
Showing
5 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters