[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix shader doc references (flutter#39855)
Browse files Browse the repository at this point in the history
Fix shader doc references
  • Loading branch information
goderbauer committed Feb 27, 2023
1 parent ab03447 commit c88d214
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ui/painting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4252,8 +4252,9 @@ class FragmentProgram extends NativeFieldWrapperClass1 {
/// Creates a fragment program from the asset with key [assetKey].
///
/// The asset must be a file produced as the output of the `impellerc`
/// compiler. The constructed object should then be reused via the [shader]
/// method to create [Shader] objects that can be used by [Shader.paint].
/// compiler. The constructed object should then be reused via the
/// [fragmentShader] method to create [Shader] objects that can be used by
/// [Paint.shader].
static Future<FragmentProgram> fromAsset(String assetKey) {
// The flutter tool converts all asset keys with spaces into URI
// encoded paths (replacing ' ' with '%20', for example). We perform
Expand Down

0 comments on commit c88d214

Please sign in to comment.