ionicfirebaseapp / getwidget

Most popular and easy to use open source UI library with 1000+ Widgets to build flutter app.

Home Page:https://www.getwidget.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error compiling 3.0.1

SteMMo33 opened this issue · comments

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

@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.

Thanks! I downgraded to 2.1.1