Skip navigation
This 3D train on a map is built with #Flutter.
0:00 / 0:25

This 3D train on a map is built with #Flutter.

The Flutter Way

@theflutterway26K followers

Visit on X
244 likesDownloadOriginal post

19,253 views #Flutter

This 3D train on a map is built with #Flutter. It runs this smooth on low-end Android phones. And it's production right now in the app with 30K+ active users daily. Plot twist: it's not 3D. 🤫 It's 216 photos. We built a 3D Bangladesh Railway train once. Took a "photo" of it from every angle. The phone just flips to the right one. Like a flipbook. The rails? Flutter paints them. The station names? Flutter paints them. The ক coach marker? You guessed it. The cost: ⚡ Under 1/3 of a millisecond per frame for the track 🧠 6.5 MB of memory for the train 📦 2.4 MB in the app That's Flutter. 💙 Would you have guessed it was photos?

7 Comments

Comments from the original post on X (Twitter)

  • Lil H's profile picture

    @MichaelH1203

    216 photos faking 3D is a brilliant trick. With 30K+ daily users, should send an HSTS header, which it doesn't yet (CSP and frame protection are missing too). 10-second check: – Michael

    3 likes

  • Shafi Munshi's profile picture

    @shafi_munshii

    How did you manage to track real time train coordinates and the routes?

    3 likes

  • Karthikeyan KK's profile picture

    @kk_spartans

    please expand this to other cities!! im willing to contribute

    2 likes

  • THE COOL GUY's profile picture

    @Crypto_CoolGuy

    It’s really cool bro🔥! Can I contribute?

    2 likes

  • 呓语's profile picture

    @wangyan_im

    heading wraparound is worth a test — smoothing 359° to 1° should take the short path, not a full spin

  • Efe Cankat Türkmen's profile picture

    @cankatturkmen

    This is 2D is amazing

  • Taqi | AI-first Sr. Software Engineer's profile picture

    @TanzilTaqi

    Nice initiative! Great work! Will love to contribute here