瀏覽代碼

More comments

xuty 2 年之前
父節點
當前提交
182e100d22
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      example/lib/suggestion.dart

+ 5 - 1
example/lib/suggestion.dart

@@ -299,6 +299,7 @@ class _HomeState extends State<Home> {
   }
 }
 
+/// The state of the suggestion overlay.
 class SuggestionViewController extends ChangeNotifier {
   final scrollController = ScrollController();
 
@@ -361,6 +362,7 @@ class SuggestionViewController extends ChangeNotifier {
   }
 }
 
+/// The suggestion popup shown above the terminal when user is typing a command.
 class SuggestionView extends StatelessWidget {
   const SuggestionView(
     this.controller, {
@@ -432,6 +434,8 @@ class SuggestionView extends StatelessWidget {
   }
 }
 
+/// The area at the bottom of [SuggestionView] that shows the description of
+/// the currently selected suggestion.
 class SuggestionDescriptionView extends StatefulWidget {
   const SuggestionDescriptionView(
     this.suggestion, {
@@ -474,7 +478,7 @@ class _SuggestionDescriptionViewState extends State<SuggestionDescriptionView> {
   }
 }
 
-/// An item in the suggestion list.
+/// An item in [SuggestionView].
 class SuggestionTile extends StatelessWidget {
   const SuggestionTile({
     super.key,