Skip to content

Commit

Permalink
fix: #179
Browse files Browse the repository at this point in the history
  • Loading branch information
PonyCui committed May 19, 2022
1 parent 1d3cb25 commit 6a0e580
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/flutter/lib/src/widgets/scroll_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,9 @@ abstract class BoxScrollView extends ScrollView {
@override
List<Widget> buildSlivers(BuildContext context) {
Widget sliver = buildChildLayout(context);
EdgeInsetsGeometry? effectivePadding = padding;
if (effectivePadding != null)
sliver = SliverPadding(padding: effectivePadding, sliver: sliver);
return <Widget>[sliver];
}

Expand Down

0 comments on commit 6a0e580

Please sign in to comment.