devolo / cockpit_open_frontend

A rewrite of the devolo Cockpit front end in Flutter
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

Update "provider" dependency to v6 #14

Closed olof-nord closed 2 years ago

olof-nord commented 2 years ago

Update "provider" dependency to v6.

This as to address the following build error:

$ flutter build linux                  

💪 Building with sound null safety 💪

ERROR: ../../.pub-cache/hosted/pub.dartlang.org/provider-5.0.0/lib/src/inherited_provider.dart:391:26: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
ERROR:  - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/opt/flutter/packages/flutter/lib/src/scheduler/binding.dart').
ERROR:         SchedulerBinding.instance!.addPostFrameCallback((_) {
ERROR:                          ^
Building Linux application...             
olof-nord commented 2 years ago

If it matters, here is my flutter version output:

flutter --version
Flutter 3.0.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 676cefaaff (5 weeks ago) • 2022-06-22 11:34:49 -0700
Engine • revision ffe7b86a1e
Tools • Dart 2.17.5 • DevTools 2.12.2
olof-nord commented 2 years ago

After this change, a build succeeds without any errors:

$ flutter build linux

💪 Building with sound null safety 💪

Building Linux application... 
$