Tuesday, April 27, 2021

Experiment with Dart and Flutter


 

Decided to try out Dart and Flutter for Android development. Some thoughts after re-implementing AndSafe:

  • For simple / standard UI, defining and implementing each page with code is a lot easier than using UI designer
  • If you know JS / node.js, writing Dart code feel like home
  • Although Dart utilizes ahead-of-time compiled code, doing CPU and memory heavy tasks (e.g. scrypt key derivation) is still noticeably slow. Ended up using Dart FFI to call C implementation of scrypt.

I first implemented Android Safe 10 years ago in 2010. This re-write is certainly more enjoyable and easy, thanks to matured development environment.

2 comments:

Shadow39 said...

Clarence...i love the andsafe app. Want to get a new phone but I see Google play no longer has Andsafe is there any place I can still down load it?

Clarence said...

Hi. You can find it on Google play as AndSafe3 https://play.google.com/store/apps/details?id=net.clarenceho.andsafe3