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
5bc4a761
Unverified
Commit
5bc4a761
authored
Aug 24, 2022
by
Newton Michael
Committed by
GitHub
Aug 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use super parameters in framework (#103620)
parent
5ac35961
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
25 deletions
+18
-25
route.dart
packages/flutter/lib/src/cupertino/route.dart
+2
-3
text_selection_toolbar.dart
...ges/flutter/lib/src/cupertino/text_selection_toolbar.dart
+2
-2
multidrag.dart
packages/flutter/lib/src/gestures/multidrag.dart
+2
-3
ink_decoration.dart
packages/flutter/lib/src/material/ink_decoration.dart
+2
-3
ink_highlight.dart
packages/flutter/lib/src/material/ink_highlight.dart
+3
-4
ink_sparkle.dart
packages/flutter/lib/src/material/ink_sparkle.dart
+3
-4
tab_indicator.dart
packages/flutter/lib/src/material/tab_indicator.dart
+2
-3
box_decoration.dart
packages/flutter/lib/src/painting/box_decoration.dart
+2
-3
No files found.
packages/flutter/lib/src/cupertino/route.dart
View file @
5bc4a761
...
...
@@ -920,10 +920,9 @@ class _CupertinoEdgeShadowDecoration extends Decoration {
class
_CupertinoEdgeShadowPainter
extends
BoxPainter
{
_CupertinoEdgeShadowPainter
(
this
.
_decoration
,
VoidCallback
?
onChange
,
super
.
onChange
,
)
:
assert
(
_decoration
!=
null
),
assert
(
_decoration
.
_colors
==
null
||
_decoration
.
_colors
!.
length
>
1
),
super
(
onChange
);
assert
(
_decoration
.
_colors
==
null
||
_decoration
.
_colors
!.
length
>
1
);
final
_CupertinoEdgeShadowDecoration
_decoration
;
...
...
packages/flutter/lib/src/cupertino/text_selection_toolbar.dart
View file @
5bc4a761
...
...
@@ -187,8 +187,8 @@ class _RenderCupertinoTextSelectionToolbarShape extends RenderShiftedBox {
_RenderCupertinoTextSelectionToolbarShape
(
this
.
_anchor
,
this
.
_isAbove
,
RenderBox
?
child
,
)
:
super
(
child
)
;
super
.
child
,
);
@override
...
...
packages/flutter/lib/src/gestures/multidrag.dart
View file @
5bc4a761
...
...
@@ -508,9 +508,8 @@ class VerticalMultiDragGestureRecognizer extends MultiDragGestureRecognizer {
}
class
_DelayedPointerState
extends
MultiDragPointerState
{
_DelayedPointerState
(
Offset
initialPosition
,
Duration
delay
,
PointerDeviceKind
kind
,
DeviceGestureSettings
?
deviceGestureSettings
)
:
assert
(
delay
!=
null
),
super
(
initialPosition
,
kind
,
deviceGestureSettings
)
{
_DelayedPointerState
(
super
.
initialPosition
,
Duration
delay
,
super
.
kind
,
super
.
deviceGestureSettings
)
:
assert
(
delay
!=
null
)
{
_timer
=
Timer
(
delay
,
_delayPassed
);
}
...
...
packages/flutter/lib/src/material/ink_decoration.dart
View file @
5bc4a761
...
...
@@ -334,12 +334,11 @@ class InkDecoration extends InkFeature {
InkDecoration
({
required
Decoration
?
decoration
,
required
ImageConfiguration
configuration
,
required
MaterialInkController
controller
,
required
super
.
controller
,
required
super
.
referenceBox
,
super
.
onRemoved
,
})
:
assert
(
configuration
!=
null
),
_configuration
=
configuration
,
super
(
controller:
controller
)
{
_configuration
=
configuration
{
this
.
decoration
=
decoration
;
controller
.
addInkFeature
(
this
);
}
...
...
packages/flutter/lib/src/material/ink_highlight.dart
View file @
5bc4a761
...
...
@@ -37,9 +37,9 @@ class InkHighlight extends InteractiveInkFeature {
///
/// When the highlight is removed, `onRemoved` will be called.
InkHighlight
({
required
MaterialInkController
controller
,
required
super
.
controller
,
required
super
.
referenceBox
,
required
Color
color
,
required
super
.
color
,
required
TextDirection
textDirection
,
BoxShape
shape
=
BoxShape
.
rectangle
,
double
?
radius
,
...
...
@@ -57,8 +57,7 @@ class InkHighlight extends InteractiveInkFeature {
_borderRadius
=
borderRadius
??
BorderRadius
.
zero
,
_customBorder
=
customBorder
,
_textDirection
=
textDirection
,
_rectCallback
=
rectCallback
,
super
(
controller:
controller
,
color:
color
)
{
_rectCallback
=
rectCallback
{
_alphaController
=
AnimationController
(
duration:
fadeDuration
,
vsync:
controller
.
vsync
)
..
addListener
(
controller
.
markNeedsPaint
)
..
addStatusListener
(
_handleAlphaStatusChanged
)
...
...
packages/flutter/lib/src/material/ink_sparkle.dart
View file @
5bc4a761
...
...
@@ -99,8 +99,8 @@ class InkSparkle extends InteractiveInkFeature {
/// identified in the shader as "noise", and the sparkles are derived from
/// pseudorandom triangular noise.
InkSparkle
({
required
MaterialInkController
controller
,
required
RenderBox
referenceBox
,
required
super
.
controller
,
required
super
.
referenceBox
,
required
super
.
color
,
required
Offset
position
,
required
TextDirection
textDirection
,
...
...
@@ -118,8 +118,7 @@ class InkSparkle extends InteractiveInkFeature {
_customBorder
=
customBorder
,
_textDirection
=
textDirection
,
_targetRadius
=
(
radius
??
_getTargetRadius
(
referenceBox
,
containedInkWell
,
rectCallback
,
position
))
*
_targetRadiusMultiplier
,
_clipCallback
=
_getClipCallback
(
referenceBox
,
containedInkWell
,
rectCallback
),
super
(
controller:
controller
,
referenceBox:
referenceBox
)
{
_clipCallback
=
_getClipCallback
(
referenceBox
,
containedInkWell
,
rectCallback
)
{
// InkSparkle will not be painted until the async compilation completes.
_InkSparkleFactory
.
compileShaderIfNecessary
();
controller
.
addInkFeature
(
this
);
...
...
packages/flutter/lib/src/material/tab_indicator.dart
View file @
5bc4a761
...
...
@@ -82,9 +82,8 @@ class UnderlineTabIndicator extends Decoration {
}
class
_UnderlinePainter
extends
BoxPainter
{
_UnderlinePainter
(
this
.
decoration
,
VoidCallback
?
onChanged
)
:
assert
(
decoration
!=
null
),
super
(
onChanged
);
_UnderlinePainter
(
this
.
decoration
,
super
.
onChanged
)
:
assert
(
decoration
!=
null
);
final
UnderlineTabIndicator
decoration
;
...
...
packages/flutter/lib/src/painting/box_decoration.dart
View file @
5bc4a761
...
...
@@ -391,9 +391,8 @@ class BoxDecoration extends Decoration {
/// An object that paints a [BoxDecoration] into a canvas.
class
_BoxDecorationPainter
extends
BoxPainter
{
_BoxDecorationPainter
(
this
.
_decoration
,
VoidCallback
?
onChanged
)
:
assert
(
_decoration
!=
null
),
super
(
onChanged
);
_BoxDecorationPainter
(
this
.
_decoration
,
super
.
onChanged
)
:
assert
(
_decoration
!=
null
);
final
BoxDecoration
_decoration
;
...
...
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