Have you checked that all the packages (in pubspec.yaml) you are using are compatible with Android and iOS?