filiph / sloth_app

Intentionally slow Flutter app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sloth_app

An intentionally slow Flutter app.

The sloth_app in action, showing two pages with Performance Overlay turned on

But, why?

Performance optimization is a gnarly topic. Performance issues seldom exist in isolation, and they often only manifest in really complex (and closed-source) apps.

I (filiph@) made this app to address this. It's full of performance issues we see in real-world apps, but without the cruft of full apps, and isolated from each other.

It has been a great resource to me and others when teaching about Flutter performance.

Videos

The app makes appearance in the following videos:

Structure

The app is structured as one big PageView that goes from left to right. Every 3rd page has a performance issue. The other two are there to cleanly isolate one performance issue from another (unless I don't want to isolate).

Pages are color-coded, so that there's a simple correspondence between what you see and the code. For example, the code to the blue page is found in blue.dart.

About

Intentionally slow Flutter app


Languages

Language:Dart 97.9%Language:Swift 1.5%Language:Kotlin 0.5%Language:Objective-C 0.1%