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
d5cbb36c
Unverified
Commit
d5cbb36c
authored
Apr 14, 2022
by
Michael Goderbauer
Committed by
GitHub
Apr 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate remaining files to super parameters (#101919)
parent
95e52dac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
31 deletions
+19
-31
gradient_perf.dart
dev/benchmarks/macrobenchmarks/lib/src/gradient_perf.dart
+7
-7
flutter_adapter.dart
...flutter_tools/lib/src/debug_adapters/flutter_adapter.dart
+6
-12
flutter_test_adapter.dart
...er_tools/lib/src/debug_adapters/flutter_test_adapter.dart
+6
-12
No files found.
dev/benchmarks/macrobenchmarks/lib/src/gradient_perf.dart
View file @
d5cbb36c
...
...
@@ -55,7 +55,7 @@ class GradientPerfHomePage extends StatelessWidget {
}
class
_PainterPage
extends
StatefulWidget
{
const
_PainterPage
({
Key
?
key
,
required
this
.
title
,
required
this
.
factory
})
:
super
(
key:
key
);
const
_PainterPage
({
super
.
key
,
required
this
.
title
,
required
this
.
factory
}
);
final
String
title
;
final
CustomPaintFactory
factory
;
...
...
@@ -65,8 +65,8 @@ class _PainterPage extends StatefulWidget {
}
class
RecreateDynamicPainterPage
extends
_PainterPage
{
const
RecreateDynamicPainterPage
({
Key
?
key
})
:
super
(
key:
key
,
title:
'Recreate Dynamic Gradients'
,
factory
:
makePainter
);
const
RecreateDynamicPainterPage
({
super
.
key
})
:
super
(
title:
'Recreate Dynamic Gradients'
,
factory
:
makePainter
);
static
CustomPainter
makePainter
(
double
f
)
{
return
RecreatedDynamicGradients
(
baseFactor:
f
);
...
...
@@ -74,8 +74,8 @@ class RecreateDynamicPainterPage extends _PainterPage {
}
class
RecreateConsistentPainterPage
extends
_PainterPage
{
const
RecreateConsistentPainterPage
({
Key
?
key
})
:
super
(
key:
key
,
title:
'Recreate Same Gradients'
,
factory
:
makePainter
);
const
RecreateConsistentPainterPage
({
super
.
key
})
:
super
(
title:
'Recreate Same Gradients'
,
factory
:
makePainter
);
static
CustomPainter
makePainter
(
double
f
)
{
return
RecreatedConsistentGradients
(
baseFactor:
f
);
...
...
@@ -83,8 +83,8 @@ class RecreateConsistentPainterPage extends _PainterPage {
}
class
StaticConsistentPainterPage
extends
_PainterPage
{
const
StaticConsistentPainterPage
({
Key
?
key
})
:
super
(
key:
key
,
title:
'Reuse Same Gradients'
,
factory
:
makePainter
);
const
StaticConsistentPainterPage
({
super
.
key
})
:
super
(
title:
'Reuse Same Gradients'
,
factory
:
makePainter
);
static
CustomPainter
makePainter
(
double
f
)
{
return
StaticConsistentGradients
(
baseFactor:
f
);
...
...
packages/flutter_tools/lib/src/debug_adapters/flutter_adapter.dart
View file @
d5cbb36c
...
...
@@ -21,20 +21,14 @@ import 'mixins.dart';
class
FlutterDebugAdapter
extends
DartDebugAdapter
<
FlutterLaunchRequestArguments
,
FlutterAttachRequestArguments
>
with
PidTracker
{
FlutterDebugAdapter
(
ByteStreamServerChannel
channel
,
{
super
.
channel
,
{
required
this
.
fileSystem
,
required
this
.
platform
,
bool
ipv6
=
false
,
bool
enableDds
=
true
,
bool
enableAuthCodes
=
true
,
Logger
?
logger
,
})
:
super
(
channel
,
ipv6:
ipv6
,
enableDds:
enableDds
,
enableAuthCodes:
enableAuthCodes
,
logger:
logger
,
);
super
.
ipv6
,
super
.
enableDds
,
super
.
enableAuthCodes
,
super
.
logger
,
});
FileSystem
fileSystem
;
Platform
platform
;
...
...
packages/flutter_tools/lib/src/debug_adapters/flutter_test_adapter.dart
View file @
d5cbb36c
...
...
@@ -21,20 +21,14 @@ import 'mixins.dart';
class
FlutterTestDebugAdapter
extends
DartDebugAdapter
<
FlutterLaunchRequestArguments
,
FlutterAttachRequestArguments
>
with
PidTracker
,
TestAdapter
{
FlutterTestDebugAdapter
(
ByteStreamServerChannel
channel
,
{
super
.
channel
,
{
required
this
.
fileSystem
,
required
this
.
platform
,
bool
ipv6
=
false
,
bool
enableDds
=
true
,
bool
enableAuthCodes
=
true
,
Logger
?
logger
,
})
:
super
(
channel
,
ipv6:
ipv6
,
enableDds:
enableDds
,
enableAuthCodes:
enableAuthCodes
,
logger:
logger
,
);
super
.
ipv6
,
super
.
enableDds
,
super
.
enableAuthCodes
,
super
.
logger
,
});
FileSystem
fileSystem
;
Platform
platform
;
...
...
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