$100 To Scan The Flutter Widget Tree
Scan the widget tree and tell me what's in it
Hi Bounty hunters!
If you don’t know, I’m building a no-code test automation tool for Flutter called TestSweets.
At the moment it’s a 2 step process, you first indicate on screen where you want to interact, and then you can start writing tests.
I want to remove that first step, which is where this bounty comes in.
The Goal
Scan the widget tree and pass back the description of all widgets that:
Are tappable
You can scroll
You can input text into
This should happen only once per unique widget
The code will be hosted in a package, so you can’t modify the UI of the app to achieve your goal by adding additional widgets into the widget tree.
The Code
I have set up a codebase to work in here. You can submit all your work as a PR.
The readme has the technical details of what’s required, but in short, you need to continuously scan the widget tree and tell me about the widget positions and descriptions.
This should happen when views are changed as well.
The Rules
Every PR should have a screen recording showing the device running the app, as well as the output to the command line or debug console. If you do not have a recording I will request changes and review your work the next day.
The code is setup to print 🍬 WidgeMonitorService - addWidget:
PR’s will be reviewed once per working day
PR’s will be reviewed in order of submission
The first PR that completes the task successfully will be accepted
All Requested changes will only be reviewed on the next day to give everyone a chance
Good luck, I’m excited to see your code.
Dane



i think this can help you =>
List<T> findWidgets<T extends Widget>() => collectAllElementsFrom(
Widgets Binding.instance.renderViewElement, skipOffstage: false)
.map((e) => e.widget) .whereType<T>()
.tolist();
Please chheck this => https://github.com/mg3994/widget_watcher_bounty_solution/blob/main/new_idea/ReadMe.md