File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ ## 1.21.2
2+ - Observer Widget
3+ - Fix web support by @Ahmadre in [ #91 ] ( https://github.com/LinXunFeng/flutter_scrollview_observer/pull/91 )
4+
15## 1.21.1
26- ObserverCore
37 - improve the logic of ` handleListObserve ` and ` handleGridObserve ` .
Original file line number Diff line number Diff line change 44 * @Date: 2022-08-08 00:20:03
55 */
66import 'dart:async' ;
7- import 'dart:io' ;
87
98import 'package:flutter/foundation.dart' ;
109import 'package:flutter/material.dart' ;
@@ -157,7 +156,8 @@ class ObserverWidgetState<
157156 .contains (notification.runtimeType)) {
158157 final isIgnoreInnerCanHandleObserve =
159158 ScrollUpdateNotification != notification.runtimeType;
160- if (kIsWeb || Platform .isWindows || Platform .isMacOS) {
159+ final platform = Theme .of (context).platform;
160+ if (kIsWeb || platform == TargetPlatform .windows || platform == TargetPlatform .macOS) {
161161 // Getting bad observation result because scrolling in Flutter Web
162162 // with mouse wheel is not smooth.
163163 // https://github.com/flutter/flutter/issues/78708
Original file line number Diff line number Diff line change 11name : scrollview_observer
22description : A widget for observing data related to the child widgets being displayed in a ScrollView.
3- version : 1.21.1
3+ version : 1.21.2
44homepage : https://github.com/fluttercandies/flutter_scrollview_observer
55
66environment :
You can’t perform that action at this time.
0 commit comments