-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lint 'discarded_futures'. #4659
Changes from all commits
f79a120
7879fec
0905308
82a2afe
3917c68
3551e64
129ea3e
cabfb7d
89cb2de
e0d7500
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,6 +2,8 @@ | |||||
// Use of this source code is governed by a BSD-style license that can be | ||||||
// found in the LICENSE file. | ||||||
|
||||||
import 'dart:async'; | ||||||
|
||||||
import 'package:devtools_shared/devtools_shared.dart'; | ||||||
import 'package:flutter/material.dart'; | ||||||
import 'package:provider/provider.dart'; | ||||||
|
@@ -158,7 +160,8 @@ class _ConnectDialogState extends State<ConnectDialog> | |||||
SizedBox( | ||||||
width: scaleByFontFactor(350.0), | ||||||
child: TextField( | ||||||
onSubmitted: actionInProgress ? null : (str) => _connect(), | ||||||
onSubmitted: | ||||||
actionInProgress ? null : (str) => unawaited(_connect()), | ||||||
autofocus: true, | ||||||
decoration: const InputDecoration( | ||||||
isDense: true, | ||||||
|
@@ -265,7 +268,7 @@ class ImportFileInstructions extends StatelessWidget { | |||||
), | ||||||
const SizedBox(height: defaultSpacing), | ||||||
ElevatedButton( | ||||||
onPressed: () => _importFile(context), | ||||||
onPressed: () => unawaited(_importFile(context)), | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
child: const MaterialIconLabel( | ||||||
label: 'Import File', | ||||||
iconData: Icons.file_upload, | ||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -166,7 +166,8 @@ class ReleaseNotes extends AnimatedWidget { | |||||||
: Expanded( | ||||||||
child: Markdown( | ||||||||
data: markdownData!, | ||||||||
onTapLink: (_, href, __) => launchUrl(href!, context), | ||||||||
onTapLink: (_, href, __) => | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would like the fixes to go to separate PRs. They may affect functionality and tests. And I do not want this massive PR to be held by this and thus become victim of error-prone merges. Created bug: #4668 |
||||||||
unawaited(launchUrl(href!, context)), | ||||||||
), | ||||||||
), | ||||||||
], | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.