tp7309 / flutter_sticky_and_expandable_list

粘性头部与分组列表Sliver实现 Build a grouped list, which support expand/collapse section and sticky headers, support use it with sliver widget.
MIT License
140 stars 29 forks source link

Migrate to 3.0.0 #42

Closed M2dL1fe closed 2 years ago

M2dL1fe commented 2 years ago

../../flutter/.pub-cache/hosted/pub.flutter-io.cn/sticky_and_expandable_list-1.0.3/lib/src/expandable_section_container.dart:170:22: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.

tp7309 commented 2 years ago

done, try 1.1.0 version.

M2dL1fe commented 2 years ago

nice @tp7309

fullflash commented 2 years ago

same error with lates version.

[        ] ../../../../.pub-cache/hosted/pub.dartlang.org/sticky_and_expandable_list-1.1.0/lib/src/expandable_section_container.dart:170:31: Error: Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is potentially null.
../…/src/expandable_section_container.dart:170
[        ]  - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../../SDK_all/flutter/packages/flutter/lib/src/widgets/binding.dart').
package:flutter/…/widgets/binding.dart:1
[        ] Try calling using ?. instead.
[        ]       WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
[        ]                               ^^^^^^^^^^^^^^^^^^^^
tp7309 commented 2 years ago

@fullflash see https://github.com/tp7309/flutter_sticky_and_expandable_list/issues/43.