Skip to content

Commit

Permalink
physics
Browse files Browse the repository at this point in the history
  • Loading branch information
imajoriri committed Oct 23, 2024
1 parent 00d9933 commit c0e622c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion example/ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UIKit
import Flutter

@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ class PageBlockComponent extends BlockComponentStatelessWidget {
final editorState = context.read<EditorState>();
final scrollController = context.read<EditorScrollController?>();
final items = node.children;
const physics = AlwaysScrollableScrollPhysics();

if (scrollController == null || scrollController.shrinkWrap) {
return SingleChildScrollView(
physics: physics,
child: Builder(
builder: (context) {
final scroller = Scrollable.maybeOf(context);
Expand Down Expand Up @@ -85,6 +87,7 @@ class PageBlockComponent extends BlockComponentStatelessWidget {

return ScrollablePositionedList.builder(
shrinkWrap: scrollController.shrinkWrap,
physics: physics,
scrollDirection: Axis.vertical,
itemCount: items.length + extentCount,
itemBuilder: (context, index) {
Expand Down

0 comments on commit c0e622c

Please sign in to comment.