Codelessly / ResponsiveFramework

Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple. Demo: https://gallery.codelessly.com/flutterwebsites/minimal/
https://codelessly.com
MIT License
1.26k stars 150 forks source link

Null error #102

Closed rajeshkumaradam666 closed 2 years ago

rajeshkumaradam666 commented 2 years ago

/G:/flutter2.10.5/.pub-cache/hosted/pub.dartlang.org/responsive_framework-0.1.8/lib/responsive_wrapper.dart:622:29: Error: Method 'addObserver' cannot be called on 'WidgetsBinding?' because it is potentially null.

FAILURE: Build failed with an exception.

BUILD FAILED in 16s Exception: Gradle task assembleDebug failed with exit code 1

sleewok commented 2 years ago

I updated to flutter 3 and this issues went away for me.

rayliverified commented 2 years ago

I've released a v0.1.9 as a compatibility release for Flutter v2. Once you migrate to Flutter v3, please use v0.2.0.