Error compiling 3.0.1
SteMMo33 opened this issue · comments
Stefano M. commented
Describe the bug
Not possible to compile the source after update to 3.01
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
../../flutter/.pub-cache/hosted/pub.dartlang.org/getwidget-3.0.1/lib/components/sticky_header/gf_sticky_header_builder.dart:63:37: Error: Property 'endOfFrame' cannot be accessed on 'WidgetsBinding?' because it is potentially null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter/packages/flutter/lib/src/widgets/binding.dart').
Try accessing using ?. instead.
WidgetsBinding.instance.endOfFrame.then((_) {
^^^^^^^^^^
Flutter 2.10.3 - stable
Arun balaji commented
@SteMMo33 Getwidget v3.x.x can be used only with flutter sdk version 3.0.0 or above, Consider using GetWidget v2.1.1 otherwise consider updating your flutter sdk.
Stefano M. commented
Thanks! I downgraded to 2.1.1