rebelappstudio / accessibility_tools

MIT License
70 stars 4 forks source link

What's missing to make it work for Flutter Web ? #58

Closed Tiska closed 3 weeks ago

Tiska commented 3 weeks ago

Hi :) What's missing to make it work for Flutter Web ?

aednlaxer commented 3 weeks ago

Hi,

Looks like nothing is missing to make accessibility_tools available on web. However, there are couple of things that need to be changed:

  1. pub.dev automatically detects available platforms and for some reason (possibly because of number two below) it doesn't think web is supported. This could be fixed by listing all supported platforms in pubspec.yaml
  2. There's kIsWeb check in one place in the code that doesn't let overlay with errors to be shown. I can't recall why this condition is there but it seems to be there since the very first commit.

I've briefly tested the example app on web. Checkers, overlay and testing panel seem to work fine. There's one thing that I've found so far - scrolling gets glitchy when checkers overlay is on but it could be fixed separately.

I'll make these changes soon to make the package available on web.

aednlaxer commented 3 weeks ago

These changes have been made in #59 and released in v2.2.3

pub.dev now shows web as one of available platforms: image