Skip to content

Commit

Permalink
More comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xtyxtyx committed May 22, 2023
1 parent 1d70912 commit 182e100
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example/lib/suggestion.dart
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ class _HomeState extends State<Home> {
}
}

/// The state of the suggestion overlay.
class SuggestionViewController extends ChangeNotifier {
final scrollController = ScrollController();

Expand Down Expand Up @@ -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, {
Expand Down Expand Up @@ -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, {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 182e100

Please sign in to comment.