jorgefspereira / persona_flutter

Persona Inquiry for Flutter. Integrates the native iOS, Android SDKs.
https://pub.dev/packages/persona_flutter
MIT License
13 stars 27 forks source link

fix: add stub Persona.Inquiry.Theme to fix missing R.style issues #54

Closed ForTheYin closed 1 month ago

ForTheYin commented 2 months ago

Was getting same issue as https://github.com/jorgefspereira/persona_flutter/issues/50 when compiling my app with Flutter 3.24.3.

I was able to fix it by adding an empty styles and verified that the custom styles were merged correctly in the app:

Screenshot 2024-09-26 at 16 35 05

Nada-gaber commented 1 month ago

@ForTheYin I tried adding empty stylesas you did but I am still facing the same issue :

flutter version: 3.22.2 package: _personaflutter: ^3.2.6

e:file:///C://pub.dev/persona_flutter3.2.6/android/src/main/kotlin/com/jorgefspereira/persona_flutter/PersonaFlutterPlugin.kt:148:86 Unresolved reference: style

FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ':persona_flutter:compileReleaseKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

ForTheYin commented 1 month ago

@Nada-gaber The empty styles needs to be on this package instead of your local resources folder.

If you want to test this fix out, feel free to update your pubspec.yaml to reference my branch:

  persona_flutter:
    git:
      url: git@github.com:ForTheYin/persona_flutter.git
      ref: master
Nada-gaber commented 1 month ago

@ForTheYin Thanks you so much. this worked. I hope they merge this solution into the package soon.

jorgefspereira commented 1 month ago

Thank you for the fix.