Skip to content

Commit

Permalink
Patch for copyWith is not defined for ScrollBehavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tneotia committed May 11, 2021
1 parent 2cb13df commit 14bc994
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/src/widgets/html_editor_widget_mobile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ class _HtmlEditorWidgetMobileState extends State<HtmlEditorWidget> {
}
if (widget.htmlEditorOptions.adjustHeightForKeyboard &&
mounted) {
//todo figure out replacement for visibleStream.drain()
//Streambuilder maybe?
var visibleDecimal = await visibleStream.stream.first;
var newHeight = widget.otherOptions.height;
if (visibleDecimal > 0.1) {
Expand Down
5 changes: 3 additions & 2 deletions lib/utils/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,12 @@ class _DropdownMenuState<T> extends State<_DropdownMenu<T>> {
type: MaterialType.transparency,
textStyle: route.style,
child: ScrollConfiguration(
behavior: ScrollConfiguration.of(context).copyWith(
//todo
behavior: ScrollConfiguration.of(context)/*.copyWith(
overscroll: false,
physics: const ClampingScrollPhysics(),
platform: Theme.of(context).platform,
),
)*/,
child: PrimaryScrollController(
controller: widget.route.scrollController!,
child: Scrollbar(
Expand Down

0 comments on commit 14bc994

Please sign in to comment.