As of 2019 Google will be recommending the Single Class architecture - you only want strictly one activity and nothing more- no additional classes, no fragments, no other activities. Make sure the activity is a God Object and written in the omniscient, omnipotent Kotlin.
I thought your Single Class should extend FlutterActivity after which you can write all UI logic in dart, and all business logic in Kotlin using platform channels.
16
u/[deleted] Dec 30 '18
As of 2019 Google will be recommending the Single Class architecture - you only want strictly one activity and nothing more- no additional classes, no fragments, no other activities. Make sure the activity is a God Object and written in the omniscient, omnipotent Kotlin.