Replies: 6 comments 5 replies
-
|
Hurdle 1 It feels like there's a missing instruction for the files like "/lib/core/models/category.g.dart" - these files are missing. I can generate these using e.g. |
Beta Was this translation helpful? Give feedback.
-
|
Hurdle 2. Problems with duplicate strings... I'm seeing e.g. these lines duplicated in app_strings.dart - which is causing a compile error for me. |
Beta Was this translation helpful? Give feedback.
-
|
Hurdle 3. There's a problem with AdExample in I can fix this by using ... but am I missing something here? Some build/run config that means this just works? |
Beta Was this translation helpful? Give feedback.
-
|
Hurdle 4. If I hack the above to fix them (building the .g; deleting the duplicate strings; adding the import) then I can at least get a splashscreen app up and running in Chrome... but it never gets past the splashscreen. I wonder if this is because I'm missing some env values. I tried understanding #304 - but it really isn't clear to me - are there any idiotproof instructions for what I'd need to do with e.g. firebase to make this work? (Or should I be thinking Android first?) |
Beta Was this translation helpful? Give feedback.
-
|
Hurdle 5... switched to Android dev... hit an error with "flutter.ndkVersion" missing... Have added something myself to |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for this @slodge ! You have raised some interesting and valuable points here. Some of which I am currently looking into resolving, others I think may be more simple to fix.... Hurdle 1 (missing *.g.dart): this repo uses json_serializable + build_runner, so dart run build_runner build --delete-conflicting-outputs is the canonical generation step. category.g.dart is currently not tracked because it was mistakenly ignored; we’ll fix the ignore and either commit that file or document codegen clearly. @MattGoodwin0 @yusuphjoluwasen can we confirm on this? ^ Hurdle 2 (duplicate strings): confirmed bug; duplicates in app_strings.dart cause a compile error. Hurdle 3 (AdExample import): confirmed bug; AdExample exists in ad_example.dart but is not imported in dashboard.dart. We’ll add the import. Hurdle 4 (web splash hang): confirmed. Firebase.initializeApp() is called without web options and firebase_options.dart is missing; on web this triggers “FirebaseOptions cannot be null…”. Web isn’t currently supported; we’ll fail fast and document that. If you want web support, the standard path is FlutterFire CLI + Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform). Hurdle 5 (NDK / AGP / Gradle): Android uses androidx.activity:activity-compose:1.11.0, which requires AGP 8.9.1+; that in turn requires Gradle 8.11.1 and JDK 17. We’ll bump AGP + Gradle and document a known-good toolchain. Also, ndkVersion is read from local.properties so contributors without flutter.ndkVersion hit a missing-value error; we should make that optional or align with Flutter’s default. Google sign‑in failing: expected without Firebase OAuth setup (SHA‑1/SHA‑256, package name, client IDs). Email/password should remain the baseline for contributors; Google sign‑in requires access to the dev Firebase project or their own. Fix compile errors: remove duplicate constants in app_strings.dart and add import in dashboard.dart. Clarify Firebase/web: fail fast on web in main.dart and document “web unsupported” + FlutterFire steps in CONTRIBUTION.md. Optional NDK fix: make ndkVersion assignment safe in build.gradle.kts (only set if present) so contributors aren’t blocked by missing flutter.ndkVersion. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Thought I'd have a play with this... I've not developed on mobile for 10 years... Last time I did I mainly worked with Xamarin/C# - so I'm used to MVVM coding, but dart/flutter is new to me.
Have started through instructions...
Hitting a few hurdles so I thoughts I'd discuss them...
Beta Was this translation helpful? Give feedback.
All reactions