Skip to content

Commit

Permalink
Moved LanguageToolMistakePopup fields up
Browse files Browse the repository at this point in the history
for them to be before the constructor.
  • Loading branch information
mitryp committed May 26, 2023
1 parent d6c2903 commit 6c590b5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/utils/mistake_popup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@ class MistakePopup {

/// Default mistake window that looks similar to LanguageTool popup
class LanguageToolMistakePopup extends StatelessWidget {
/// [LanguageToolMistakePopup] constructor
const LanguageToolMistakePopup({
super.key,
required this.popupRenderer,
required this.mistake,
required this.controller,
required this.mistakePosition,
this.maxHeight = double.infinity,
});

/// Renderer used to display this window.
final PopupOverlayRenderer popupRenderer;

Expand All @@ -68,6 +58,16 @@ class LanguageToolMistakePopup extends StatelessWidget {
/// [mistakePosition] and the furthest border of the layout constraints.
final double maxHeight;

/// [LanguageToolMistakePopup] constructor
const LanguageToolMistakePopup({
super.key,
required this.popupRenderer,
required this.mistake,
required this.controller,
required this.mistakePosition,
this.maxHeight = double.infinity,
});

@override
Widget build(BuildContext context) {
const _borderRadius = 10.0;
Expand Down

0 comments on commit 6c590b5

Please sign in to comment.