This doesn't work because this package smart_auth is simply not iOS compatible.
smart_auth
Only the Android platform is indicated on the doc: https://pub.dev/packages/smart_auth