flutter_screenutil icon indicating copy to clipboard operation
flutter_screenutil copied to clipboard

Documentation mistake?

Open groshevdg opened this issue 1 year ago • 1 comments

Hi there. Thank you for this package. It's really useful one. I've got a question related to the documentation. There is a mention in the docs that widget won't be marked as one that needs rebuild if:

  • Widget does not declare SU mixin
  • responsiveWidgets does not contains widget name

But I've checked code and noticed that widget marks dirty if widget is SU or responsiveWidgets.contains(widgetName).

 final allowed = widget is SU ||
        _canMarkedToBuild.contains(widgetName) ||
        !(widgetName.startsWith('_') || flutterWidgets.contains(widgetName));

    if (allowed) el.markNeedsBuild();

Is that a mistake in the docs or I got something wrong?

Thank you in advance!

groshevdg avatar Aug 26 '24 16:08 groshevdg

I've also found the updated docs confusing

m-spiridon avatar Sep 08 '24 19:09 m-spiridon