Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/src/terminal_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class TerminalView extends StatefulWidget {
this.readOnly = false,
this.hardwareKeyboardOnly = false,
this.simulateScroll = true,
this.scrollPhysics,
});

/// The underlying terminal that this widget renders.
Expand Down Expand Up @@ -141,6 +142,10 @@ class TerminalView extends StatefulWidget {
/// emulators. True by default.
final bool simulateScroll;

/// Custom scroll physics for the terminal's scrollable. If not provided,
/// default scroll physics will be used.
final ScrollPhysics? scrollPhysics;

@override
State<TerminalView> createState() => TerminalViewState();
}
Expand Down Expand Up @@ -219,6 +224,7 @@ class TerminalViewState extends State<TerminalView> {
Widget child = Scrollable(
key: _scrollableKey,
controller: _scrollController,
physics: widget.scrollPhysics,
viewportBuilder: (context, offset) {
return _TerminalView(
key: _viewportKey,
Expand Down