Skip to content

Commit 736a543

Browse files
rm unnecessary
1 parent d1f3044 commit 736a543

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

example/lib/app.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class _AppState extends State<App> {
4444
decoration: const InputDecoration(),
4545
coloredController: _controller,
4646
mistakePopup: MistakePopup(popupRenderer: PopupOverlayRenderer()),
47-
maxLines: null,
4847
),
4948
DropdownMenu(
5049
hintText: "Select alignment...",

lib/utils/mistake_popup.dart

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -213,20 +213,17 @@ class LanguageToolMistakePopup extends StatelessWidget {
213213
: _replacementButtonsSpacingMobile,
214214
children: mistake.replacements
215215
.map(
216-
(replacement) => MouseRegion(
217-
cursor: MaterialStateMouseCursor.clickable,
218-
child: ElevatedButton(
219-
onPressed: () => _fixTheMistake(replacement),
220-
style: mistakeStyle ??
221-
ElevatedButton.styleFrom(
222-
elevation: 0,
223-
minimumSize: const Size(40, 36),
224-
padding: const EdgeInsets.symmetric(
225-
horizontal: 8,
226-
),
216+
(replacement) => ElevatedButton(
217+
onPressed: () => _fixTheMistake(replacement),
218+
style: mistakeStyle ??
219+
ElevatedButton.styleFrom(
220+
elevation: 0,
221+
minimumSize: const Size(40, 36),
222+
padding: const EdgeInsets.symmetric(
223+
horizontal: 8,
227224
),
228-
child: Text(replacement),
229-
),
225+
),
226+
child: Text(replacement),
230227
),
231228
)
232229
.toList(),

0 commit comments

Comments
 (0)