google / flutter.widgets

Home Page:https://pub.dev/packages/flutter_widgets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VisibilityDetectorController is not visible, because it is not exported.

bbottema opened this issue · comments

Problem description

visibility_detector

Steps to reproduce

import 'package:visibility_detector/visibility_detector.dart';
// or even 
import 'package:visibility_detector/src/visibility_detector_controller.dart';


VisibilityDetectorController.instance.updateInterval = Duration.zero;

Import fails, because VisibilityDetectorController is not exported.

Btw, this is repeatedly documented as valid use, so it's not like I'm trying to do something I'm not supposed to.

Yes, user error I just discovered. Closing. Sorry.