regulaforensics / flutter_face_api

MIT License
31 stars 14 forks source link

[FR] FaceCaptureActivity with config #7

Open Kerrely opened 1 year ago

Kerrely commented 1 year ago

Is your feature request related to a problem? Please describe. There's a presentFaceCaptureActivityWithConfig method available. However, the parameter is a type of dynamic with no documentation/reference to follow. From some digging I understand that there's some native ...Config.Builder for the further native code and right now there's no way how I could pass desired parameters like isCloseButtonEnabled. There's nothing related in the JSONConstructor either, therefore I assume it's not possible right now. This is quite crucial however since in our usecase we need to get rid of the close button at least.

Describe the solution you'd like Provide (typed if possible) way to pass in the config for activities with config.

huxiaobo commented 1 year ago

The config is a map , like {"forceToUseHuaweiVision" : true}. I add a config by myself , you can add the parameters you need. image