Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
ed0c8d77
Unverified
Commit
ed0c8d77
authored
Aug 03, 2022
by
Michael Goderbauer
Committed by
GitHub
Aug 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some outdated ignores from framework (#108915)
parent
f34b8d1f
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
10 additions
and
17 deletions
+10
-17
assertions.dart
packages/flutter/lib/src/foundation/assertions.dart
+1
-1
long_press.dart
packages/flutter/lib/src/gestures/long_press.dart
+0
-2
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+1
-1
implicit_animations.dart
packages/flutter/lib/src/widgets/implicit_animations.dart
+1
-1
unique_widget.dart
packages/flutter/lib/src/widgets/unique_widget.dart
+1
-1
widget_inspector.dart
packages/flutter/lib/src/widgets/widget_inspector.dart
+1
-1
_compute_caller_unsound_null_safety_error.dart
...foundation/_compute_caller_unsound_null_safety_error.dart
+1
-1
assertions_test.dart
packages/flutter/test/foundation/assertions_test.dart
+1
-2
scrollbar_test.dart
packages/flutter/test/material/scrollbar_test.dart
+0
-2
painting_utils.dart
packages/flutter/test/painting/painting_utils.dart
+1
-1
sliver_fixed_extent_layout_test.dart
...utter/test/rendering/sliver_fixed_extent_layout_test.dart
+0
-1
hardware_keyboard_test.dart
packages/flutter/test/services/hardware_keyboard_test.dart
+0
-1
framework_test.dart
packages/flutter/test/widgets/framework_test.dart
+1
-1
raw_keyboard_listener_test.dart
...ages/flutter/test/widgets/raw_keyboard_listener_test.dart
+1
-1
No files found.
packages/flutter/lib/src/foundation/assertions.dart
View file @
ed0c8d77
...
...
@@ -670,7 +670,7 @@ class FlutterErrorDetails with Diagnosticable {
super
.
debugFillProperties
(
properties
);
final
DiagnosticsNode
verb
=
ErrorDescription
(
'thrown
${ context != null ? ErrorDescription(" $context") : ""}
'
);
final
Diagnosticable
?
diagnosticable
=
_exceptionToDiagnosticable
();
if
(
exception
is
NullThrownError
)
{
// ignore: deprecated_member_use
if
(
exception
is
NullThrownError
)
{
properties
.
add
(
ErrorDescription
(
'The null value was
$verb
.'
));
}
else
if
(
exception
is
num
)
{
properties
.
add
(
ErrorDescription
(
'The number
$exception
was
$verb
.'
));
...
...
packages/flutter/lib/src/gestures/long_press.dart
View file @
ed0c8d77
...
...
@@ -250,8 +250,6 @@ class LongPressGestureRecognizer extends PrimaryPointerGestureRecognizer {
/// {@macro flutter.gestures.GestureRecognizer.supportedDevices}
LongPressGestureRecognizer
({
Duration
?
duration
,
// TODO(goderbauer): remove ignore when https://github.com/dart-lang/linter/issues/3349 is fixed.
// ignore: avoid_init_to_null
super
.
postAcceptSlopTolerance
=
null
,
@Deprecated
(
'Migrate to supportedDevices. '
...
...
packages/flutter/lib/src/widgets/framework.dart
View file @
ed0c8d77
...
...
@@ -781,7 +781,7 @@ abstract class StatefulWidget extends Widget {
/// [State] objects.
@protected
@factory
State
createState
();
// ignore: no_logic_in_create_state, this is the original sin
State
createState
();
}
/// Tracks the lifecycle of [State] objects when asserts are enabled.
...
...
packages/flutter/lib/src/widgets/implicit_animations.dart
View file @
ed0c8d77
...
...
@@ -297,7 +297,7 @@ abstract class ImplicitlyAnimatedWidget extends StatefulWidget {
final
VoidCallback
?
onEnd
;
@override
ImplicitlyAnimatedWidgetState
<
ImplicitlyAnimatedWidget
>
createState
();
// ignore: no_logic_in_create_state, https://github.com/dart-lang/linter/issues/2345
ImplicitlyAnimatedWidgetState
<
ImplicitlyAnimatedWidget
>
createState
();
@override
void
debugFillProperties
(
DiagnosticPropertiesBuilder
properties
)
{
...
...
packages/flutter/lib/src/widgets/unique_widget.dart
View file @
ed0c8d77
...
...
@@ -28,7 +28,7 @@ abstract class UniqueWidget<T extends State<StatefulWidget>> extends StatefulWid
super
(
key:
key
);
@override
T
createState
();
// ignore: no_logic_in_create_state, https://github.com/dart-lang/linter/issues/2345
T
createState
();
/// The state for the unique inflated instance of this widget.
///
...
...
packages/flutter/lib/src/widgets/widget_inspector.dart
View file @
ed0c8d77
...
...
@@ -978,7 +978,7 @@ mixin WidgetInspectorService {
bool
enabled
=
false
;
assert
(()
{
// TODO(kenz): add support for structured errors on the web.
enabled
=
const
bool
.
fromEnvironment
(
'flutter.inspector.structuredErrors'
,
defaultValue:
!
kIsWeb
);
// ignore: avoid_redundant_argument_values
enabled
=
const
bool
.
fromEnvironment
(
'flutter.inspector.structuredErrors'
,
defaultValue:
!
kIsWeb
);
return
true
;
}());
return
enabled
;
...
...
packages/flutter/test/foundation/_compute_caller_unsound_null_safety_error.dart
View file @
ed0c8d77
...
...
@@ -16,7 +16,7 @@ void main() async {
try
{
await
compute
(
throwNull
,
null
);
}
catch
(
e
)
{
if
(
e
is
!
NullThrownError
)
{
// ignore: deprecated_member_use
if
(
e
is
!
NullThrownError
)
{
throw
Exception
(
'compute returned bad result'
);
}
}
...
...
packages/flutter/test/foundation/assertions_test.dart
View file @
ed0c8d77
...
...
@@ -60,7 +60,7 @@ void main() {
);
expect
(
FlutterErrorDetails
(
exception:
NullThrownError
(),
// ignore: deprecated_member_use
exception:
NullThrownError
(),
library
:
'LIBRARY'
,
context:
ErrorDescription
(
'CONTEXTING'
),
informationCollector:
()
sync
*
{
...
...
@@ -113,7 +113,6 @@ void main() {
'═════════════════════════════════════════════════════════════════
\n
'
,
);
expect
(
// ignore: deprecated_member_use
FlutterErrorDetails
(
exception:
NullThrownError
()).
toString
(),
'══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞══════════════════════
\n
'
'The null value was thrown.
\n
'
...
...
packages/flutter/test/material/scrollbar_test.dart
View file @
ed0c8d77
...
...
@@ -148,11 +148,9 @@ void main() {
viewportDimension:
100.0
,
axisDirection:
AxisDirection
.
down
,
);
// ignore: avoid_dynamic_calls
scrollPainter
!.
update
(
metrics
,
AxisDirection
.
down
);
final
TestCanvas
canvas
=
TestCanvas
();
// ignore: avoid_dynamic_calls
scrollPainter
.
paint
(
canvas
,
const
Size
(
10.0
,
100.0
));
// Scrollbar is not supposed to draw anything if there isn't enough content.
...
...
packages/flutter/test/painting/painting_utils.dart
View file @
ed0c8d77
...
...
@@ -20,7 +20,7 @@ class PaintingBindingSpy extends BindingBase with SchedulerBinding, ServicesBind
}
@override
// ignore:
MUST_CALL_SUPER
// ignore:
must_call_super
void
initLicenses
()
{
// Do not include any licenses, because we're a test, and the LICENSE file
// doesn't get generated for tests.
...
...
packages/flutter/test/rendering/sliver_fixed_extent_layout_test.dart
View file @
ed0c8d77
...
...
@@ -222,7 +222,6 @@ class TestRenderSliverFixedExtentBoxAdaptor extends RenderSliverFixedExtentBoxAd
:
super
(
childManager:
TestRenderSliverBoxChildManager
(
children:
<
RenderBox
>[]));
@override
// ignore: unnecessary_overrides
int
getMaxChildIndexForScrollOffset
(
double
scrollOffset
,
double
itemExtent
)
{
return
super
.
getMaxChildIndexForScrollOffset
(
scrollOffset
,
itemExtent
);
}
...
...
packages/flutter/test/services/hardware_keyboard_test.dart
View file @
ed0c8d77
...
...
@@ -75,7 +75,6 @@ void main() {
return
false
;
});
// While ShiftLeft is held (the event of which was skipped), press keyA.
// ignore: prefer_const_declarations
final
Map
<
String
,
dynamic
>
rawMessage
=
kIsWeb
?
(
KeyEventSimulator
.
getKeyData
(
LogicalKeyboardKey
.
keyA
,
...
...
packages/flutter/test/widgets/framework_test.dart
View file @
ed0c8d77
...
...
@@ -1268,7 +1268,7 @@ void main() {
});
testWidgets
(
'scheduleBuild while debugBuildingDirtyElements is true'
,
(
WidgetTester
tester
)
async
{
//
/
ignore here is required for testing purpose because changing the flag properly is hard
// ignore here is required for testing purpose because changing the flag properly is hard
// ignore: invalid_use_of_protected_member
tester
.
binding
.
debugBuildingDirtyElements
=
true
;
late
FlutterError
error
;
...
...
packages/flutter/test/widgets/raw_keyboard_listener_test.dart
View file @
ed0c8d77
...
...
@@ -62,7 +62,7 @@ void main() {
focusNode
.
requestFocus
();
await
tester
.
idle
();
await
tester
.
sendKeyEvent
(
LogicalKeyboardKey
.
metaLeft
,
platform:
'web'
);
// ignore: avoid_redundant_argument_values
await
tester
.
sendKeyEvent
(
LogicalKeyboardKey
.
metaLeft
,
platform:
'web'
);
await
tester
.
idle
();
expect
(
events
.
length
,
2
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment