hadukin / custom_sliding_segmented_control

custom_sliding_segmented_control
https://pub.dev/packages/custom_sliding_segmented_control
MIT License
42 stars 24 forks source link

WidgetsBinding.instance.addPostFrameCallback failed #18

Closed caiomourasud closed 2 years ago

caiomourasud commented 2 years ago

Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null. 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart'.

JeanPSF commented 2 years ago

Also have this problem, started after flutter 3.0 update.

momo1110111 commented 2 years ago

Me too.

amanshah28 commented 2 years ago

Me too

offline-first commented 2 years ago

PR #19

hadukin commented 2 years ago

@offline-first thanks for the help.

fixed version (1.6.1) available at pub.dev

Tristannos commented 2 years ago

Still having the problem!! but if i change:
SchedulerBinding.instance.addPostFrameCallback(postFrameCallback); to this: SchedulerBinding.instance?.addPostFrameCallback(postFrameCallback);

it works.

offline-first commented 2 years ago

@Tristannos update to latest flutter version ;)