../../../.fvm/versions/2.10.5-stable/.pub-cache/hosted/http%2558%2547%2547mirrors.cnnic.cn%2547dart-pub%2547/time_range_picker-2.2.0/lib/src/time-range-dialog.dart:306:29: Error: Method 'addObserver' cannot be called on 'WidgetsBinding?' because it is potentially null.
'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../.fvm/versions/2.10.5-stable/packages/flutter/lib/src/widgets/binding.dart').
Try calling using ?. instead.
WidgetsBinding.instance.addObserver(this);
^^^^^^^^^^^
../../../.fvm/versions/2.10.5-stable/.pub-cache/hosted/http%2558%2547%2547mirrors.cnnic.cn%2547dart-pub%2547/time_range_picker-2.2.0/lib/src/time-range-dialog.dart:308:29: Error: Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is potentially null.
'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../.fvm/versions/2.10.5-stable/packages/flutter/lib/src/widgets/binding.dart').
Try calling using ?. instead.
WidgetsBinding.instance.addPostFrameCallback((_) => setRadius());
^^^^^^^^^^^^^^^^^^^^
../../../.fvm/versions/2.10.5-stable/.pub-cache/hosted/http%2558%2547%2547mirrors.cnnic.cn%2547dart-pub%2547/time_range_picker-2.2.0/lib/src/time-range-dialog.dart:315:29: Error: Method 'removeObserver' cannot be called on 'WidgetsBinding?' because it is potentially null.
'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../.fvm/versions/2.10.5-stable/packages/flutter/lib/src/widgets/binding.dart').
Try calling using ?. instead.
WidgetsBinding.instance.removeObserver(this);
^^^^^^^^^^^^^^
../../../.fvm/versions/2.10.5-stable/.pub-cache/hosted/http%2558%2547%2547mirrors.cnnic.cn%2547dart-pub%2547/time_range_picker-2.2.0/lib/src/time-range-dialog.dart:322:29: Error: Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is potentially null.
'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../.fvm/versions/2.10.5-stable/packages/flutter/lib/src/widgets/binding.dart').
Try calling using ?. instead.
WidgetsBinding.instance.addPostFrameCallback((_) => setRadius());
^^^^^^^^^^^^^^^^^^^^
../../../.fvm/versions/2.10.5-stable/.pub-cache/hosted/http%2558%2547%2547mirrors.cnnic.cn%2547dart-pub%2547/time_range_picker-2.2.0/lib/src/time-range-dialog.dart:306:29: Error: Method 'addObserver' cannot be called on 'WidgetsBinding?' because it is potentially null.
FAILURE: Build failed with an exception.