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
fccca493
Unverified
Commit
fccca493
authored
Mar 23, 2023
by
Michael Goderbauer
Committed by
GitHub
Mar 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor buildOverscrollIndicator (#123246)
parent
7f41ab25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
15 deletions
+4
-15
app.dart
packages/flutter/lib/src/material/app.dart
+2
-5
scroll_configuration.dart
packages/flutter/lib/src/widgets/scroll_configuration.dart
+2
-10
No files found.
packages/flutter/lib/src/material/app.dart
View file @
fccca493
...
...
@@ -865,14 +865,11 @@ class MaterialScrollBehavior extends ScrollBehavior {
child:
child
,
);
case
AndroidOverscrollIndicator
.
glow
:
return
_buildGlowingOverscrollIndicator
(
context
,
details
,
child
)
;
break
;
}
case
TargetPlatform
.
fuchsia
:
return
_buildGlowingOverscrollIndicator
(
context
,
details
,
child
)
;
break
;
}
}
GlowingOverscrollIndicator
_buildGlowingOverscrollIndicator
(
BuildContext
context
,
ScrollableDetails
details
,
Widget
child
)
{
return
GlowingOverscrollIndicator
(
axisDirection:
details
.
direction
,
color:
Theme
.
of
(
context
).
colorScheme
.
secondary
,
...
...
packages/flutter/lib/src/widgets/scroll_configuration.dart
View file @
fccca493
...
...
@@ -194,14 +194,11 @@ class ScrollBehavior {
child:
child
,
);
case
AndroidOverscrollIndicator
.
glow
:
return
_buildGlowingOverscrollIndicator
(
details
,
child
)
;
break
;
}
case
TargetPlatform
.
fuchsia
:
return
_buildGlowingOverscrollIndicator
(
details
,
child
)
;
break
;
}
}
GlowingOverscrollIndicator
_buildGlowingOverscrollIndicator
(
ScrollableDetails
details
,
Widget
child
)
{
return
GlowingOverscrollIndicator
(
axisDirection:
details
.
direction
,
color:
_kDefaultGlowColor
,
...
...
@@ -382,11 +379,6 @@ class _WrappedScrollBehavior implements ScrollBehavior {
@override
String
toString
()
=>
objectRuntimeType
(
this
,
'_WrappedScrollBehavior'
);
@override
GlowingOverscrollIndicator
_buildGlowingOverscrollIndicator
(
ScrollableDetails
details
,
Widget
child
)
{
return
delegate
.
_buildGlowingOverscrollIndicator
(
details
,
child
);
}
}
/// Controls how [Scrollable] widgets behave in a subtree.
...
...
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