You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final flutterWebviewPlugin = new FlutterWebviewPlugin();
49
+
flutterWebviewPlugin.onScrollYChanged.listen((double offsetY) { // latest offset value in vertical scroll
50
+
// compare vertical scroll changes here with old value
51
+
});
52
+
53
+
flutterWebviewPlugin.onScrollXChanged.listen((double offsetX) { // latest offset value in horizontal scroll
54
+
// compare horizontal scroll changes here with old value
55
+
});
56
+
57
+
````
58
+
59
+
Note: Do note there is a slight difference is scroll distance between ios and android. Android scroll value difference tends to be larger than ios devices.
# - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
11
+
- always_require_non_null_named_parameters
12
+
# - always_specify_types
13
+
- annotate_overrides
14
+
# - avoid_annotating_with_dynamic # conflicts with always_specify_types
15
+
- avoid_as
16
+
# - avoid_bool_literals_in_conditional_expressions # not yet tested
17
+
# - avoid_catches_without_on_clauses # we do this commonly
18
+
# - avoid_catching_errors # we do this commonly
19
+
- avoid_classes_with_only_static_members
20
+
# - avoid_double_and_int_checks # only useful when targeting JS runtime
21
+
- avoid_empty_else
22
+
- avoid_field_initializers_in_const_classes
23
+
# - avoid_function_literals_in_foreach_calls
24
+
- avoid_init_to_null
25
+
# - avoid_js_rounded_ints # only useful when targeting JS runtime
26
+
- avoid_null_checks_in_equality_operators
27
+
# - avoid_positional_boolean_parameters # not yet tested
28
+
# - avoid_private_typedef_functions # we prefer having typedef (discussion in https://github.com/flutter/flutter/pull/16356)
0 commit comments