Session
From Equations to Animation: Building an Interactive Optimization-Algorithm Playground in Flutter
This talk walks through building a small interactive app where users can watch and compare different nature-inspired optimization algorithms (PSO, Ant Colony Optimization, Cuckoo Search) search a 2D landscape in real time, pause, step through iterations, and tweak parameters live. Beyond the visual payoff, this is a practical case study in a category of Flutter app that gets far less coverage than typical CRUD/forms content: apps built around a live simulation loop. We'll cover structuring state for a ticking simulation with Provider/Riverpod, painting thousands of moving points efficiently with a CustomPainter without dropping frames, also adding the interactive controls that mutate a running simulation safely, and packaging multiple algorithms behind a common interface so new ones can be dropped in easily.
Key Takeaways:
- A clean architecture pattern for "simulation "apps"—separating tick logic, state, and rendering
-Efficient custom painter techniques for rendering large numbers of moving elements without performance loss
-Safely mutating a live, ticking simulation from user-facing controls (sliders, pause/step buttons) without race conditions
-A pluggable algorithm pattern so the same visualization shell works for PSO, ACO, Cuckoo Search, or any future algorithm.
Neha Arora
University of Newcastle, Australia, PHD student
Newcastle, Australia
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top