Skip to content

Commit 5101622

Browse files
committed
v1.5.1 Release
- Fix ScrollBehavior missing default values.
1 parent 3cbe9b2 commit 5101622

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## 1.5.1
3+
- Fix ScrollBehavior missing default values.
4+
25
## 1.5.0
36
- Create new MaxWidthBox implementation that only uses constraints for setting max width.
47
- Create NoScrollBarBehavior.

example

lib/src/utils/scroll_behavior.dart

+8-4
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ class BouncingScrollWrapper extends StatelessWidget {
3939
Widget build(BuildContext context) {
4040
return ScrollConfiguration(
4141
behavior: dragWithMouse
42-
? const BouncingScrollBehavior()
43-
.copyWith(dragDevices: {PointerDeviceKind.mouse})
42+
? const BouncingScrollBehavior().copyWith(dragDevices: {
43+
...const BouncingScrollBehavior().dragDevices,
44+
PointerDeviceKind.mouse
45+
})
4446
: const BouncingScrollBehavior(),
4547
child: child,
4648
);
@@ -80,8 +82,10 @@ class ClampingScrollWrapper extends StatelessWidget {
8082
Widget build(BuildContext context) {
8183
return ScrollConfiguration(
8284
behavior: dragWithMouse
83-
? const ClampingScrollBehavior()
84-
.copyWith(dragDevices: {PointerDeviceKind.mouse})
85+
? const ClampingScrollBehavior().copyWith(dragDevices: {
86+
...const ClampingScrollBehavior().dragDevices,
87+
PointerDeviceKind.mouse
88+
})
8589
: const ClampingScrollBehavior(),
8690
child: child,
8791
);

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: responsive_framework
22
description: Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.
3-
version: 1.5.0
3+
version: 1.5.1
44
homepage: https://codelessly.com
55
repository: https://github.com/Codelessly/ResponsiveFramework
66
documentation: https://github.com/Codelessly/ResponsiveFramework

0 commit comments

Comments
 (0)