【问题标题】:Why documentation isn't showing when clicking on the attribute, shows on the window however为什么单击属性时未显示文档,但显示在窗口中
【发布时间】:2020-06-10 12:32:02
【问题描述】:

截图:

您可以看到,当我按下 ctrl + j 快捷方式时,文档出现在窗口中,但是当我单击属性时,它确实将我带到了源代码,但没有文档。那么,那个窗口文档是从哪里来的呢?

【问题讨论】:

    标签: android-studio flutter intellij-idea


    【解决方案1】:

    您在按 Ctrl + J 时看到的那些行正在从预定义的文档块中获取描述。
    @macro 用于插入该文档的和平。
    请检查飞镖文档以更好地理解它https://github.com/dart-lang/dartdoc#macros

    所以文档模板位于<your flutter_dir>/packages/flutter/lib/src/widgets/editable_text.dart 内 如:

    /// {@template flutter.widgets.editableText.autocorrect}
    /// Whether to enable autocorrection.
    ///
    /// Defaults to true. Cannot be null.
    /// {@endtemplate}
    final bool autocorrect;
    

    【讨论】:

      猜你喜欢
      • 2012-09-02
      • 2018-11-16
      • 1970-01-01
      • 1970-01-01
      • 2015-06-27
      • 1970-01-01
      • 1970-01-01
      • 2012-07-02
      相关资源
      最近更新 更多