commit | 8918e937561da2e4d66c3d69429ef2ec85cd5aed | [log] [tgz] |
---|---|---|
author | Tarrin Neal <tarrinneal@gmail.com> | Fri Jul 07 11:43:07 2023 -0700 |
committer | GitHub <noreply@github.com> | Fri Jul 07 18:43:07 2023 +0000 |
tree | b365b0cce98e43b483ffb4fb98ba590b7c45eeb1 | |
parent | cd19bad56ae550334c6f6d56623ff6a46818f198 [diff] |
[flutter_markdown] Pass parent TextStyle down to MarkdownElementBuilder.visitElementAfter (#4393) The parent `TextStyle` should be passed down to the `MarkdownElementBuilder.visitElementAfter` method to allow custom markdown tags to override only part of the text style, e.g. the color, but keep all the rest of the styles the same. This is especially useful when trying to color markdown headers in a certain color, as the parent font size, font family, etc. all are passed down and can be kept, while only the color is overridden. This will unfortunately lead to a breaking change, due to the nature of how the class is typically used. As all usages of the class are sub-classes any change to the method schema will result in a breaking change! Enables the following https://github.com/flutter/flutter/issues/105571 replaces https://github.com/flutter/packages/pull/3281
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages
directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: