johnuberbacher / flutter_medical Goto Github PK
View Code? Open in Web Editor NEWFunctioning Doctor/Healthcare Catalog App created using Dart with Flutter. Stores and loads data from Firebase Firestore DB.
License: MIT License
Functioning Doctor/Healthcare Catalog App created using Dart with Flutter. Stores and loads data from Firebase Firestore DB.
License: MIT License
Flutter version: 1.20.4
SO: W10 x64
Got this trace:
I/flutter (28331): The following NoSuchMethodError was thrown building HomeScreen(dirty, dependencies: [MediaQuery], I/flutter (28331): state: _HomeScreenState#1c7c2): I/flutter (28331): The getter 'length' was called on null. I/flutter (28331): Receiver: null I/flutter (28331): Tried calling: length I/flutter (28331): I/flutter (28331): The relevant error-causing widget was: I/flutter (28331): HomeScreen I/flutter (28331): file:///E:/bada/Documents/FAUSI/FLUTTER/OCTUBRE%202020/Flutter_medical/lib/main.dart:64:30 I/flutter (28331): I/flutter (28331): When the exception was thrown, this was the stack: I/flutter (28331): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5) I/flutter (28331): #1 titleCase (package:flutter_medical/widgets.dart:369:12) I/flutter (28331): #2 _HomeScreenState.build (package:flutter_medical/routes/home.dart:415:50) I/flutter (28331): #3 StatefulElement.build (package:flutter/src/widgets/framework.dart:4744:28) I/flutter (28331): #4 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4627:15) I/flutter (28331): #5 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4800:11) I/flutter (28331): #6 Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5) I/flutter (28331): #7 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2730:33) I/flutter (28331): #8 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:913:20) I/flutter (28331): #9 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:302:5) I/flutter (28331): #10 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1117:15) I/flutter (28331): #11 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1055:9) I/flutter (28331): #12 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:971:5) I/flutter (28331): #16 _invoke (dart:ui/hooks.dart:251:10) I/flutter (28331): #17 _drawFrame (dart:ui/hooks.dart:209:3) I/flutter (28331): (elided 3 frames from dart:async) I/flutter (28331): I/flutter (28331): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter (28331): Instance of 'QuerySnapshot' I/flutter (28331): worked I/flutter (28331): Instance of 'QuerySnapshot' I/flutter (28331): Instance of 'QuerySnapshot' I/flutter (28331): Another exception was thrown: NoSuchMethodError: The getter 'length' was called on null.
Thanks for the application, I have the following error when I try to launch it.
`→ flutter run [9794f47]
Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider enabling
software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
FAILURE: Build failed with an exception.
File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
/home/mario/tmp/flutter/flutter_medical/android/app/src/nullnull/google-services.json
/home/mario/tmp/flutter/flutter_medical/android/app/src/debug/google-services.json
/home/mario/tmp/flutter/flutter_medical/android/app/src/nullnullDebug/google-services.json
/home/mario/tmp/flutter/flutter_medical/android/app/src/nullnull/debug/google-services.json
/home/mario/tmp/flutter/flutter_medical/android/app/src/debug/nullnull/google-services.json
/home/mario/tmp/flutter/flutter_medical/android/app/google-services.json
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 12s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 12,7s
Exception: Gradle task assembleDebug failed with exit code 1
`
1stly thanks for this great work
I am getting a red screen after irunning the app. I am running it on a device and is shows a red screen with error:
NoSuchMethodError: The getter 'length' was called on null.
Receiver: null
Tried calling 'lenght'
See also: https://flutter.dev/docs/testing/errors
THE IDE DEBUGGER READS:
════════ Exception caught by widgets library ═══════════════════════════════════
The following NoSuchMethodError was thrown building:
The getter 'length' was called on null.
Receiver: null
Tried calling: length
When the exception was thrown, this was the stack
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 titleCase
package:flutter_medical/widgets.dart:396
#2 _HomeScreenState.userHeader
package:flutter_medical/routes/home.dart:175
#3 _HomeScreenState.loadUserInfo.<anonymous closure>
package:flutter_medical/routes/home.dart:116
#4 SliverChildBuilderDelegate.build
package:flutter/…/widgets/sliver.dart:449
...
════════════════════════════════════════════════════════════════════════════════
W/System (10106): ClassLoader referenced unknown path: system/framework/mediatek-cta.jar
I/System.out(10106): e:java.lang.ClassNotFoundException: com.mediatek.cta.CtaHttp
Also i note that there are no functions specified are they not required? And added to that the Database rules. any guidance on that?
I am getting the following message after I connect the firebase...
I have installed JDK version 14.0.1 but it still looking for a jdk inside the jre directory.
Launching lib\main.dart on ONEPLUS A5000 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_271 contains a valid JDK installation.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 16s
Exception: Gradle task assembleDebug failed with exit code 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 44s
Running "flutter pub get" in flutter_medical...
Launching lib\main.dart on Android SDK built for x86 64 in debug mode...
lib\main.dart:1
Parameter format not correct -
FAILURE: Build failed with an exception.
File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
D:\Programming Essentials\Open Source\flutter_medical\android\app\src\nullnull\google-services.json
D:\Programming Essentials\Open Source\flutter_medical\android\app\src\debug\google-services.json
D:\Programming Essentials\Open Source\flutter_medical\android\app\src\nullnullDebug\google-services.json
D:\Programming Essentials\Open Source\flutter_medical\android\app\src\nullnull\debug\google-services.json
D:\Programming Essentials\Open Source\flutter_medical\android\app\src\debug\nullnull\google-services.json
D:\Programming Essentials\Open Source\flutter_medical\android\app\google-services.json
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
flutter pub get
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It is being deprecated in favor of Android embedding v2. Follow the
steps at
Its an humble request
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.