-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in composeTweet section #255
Comments
im having the same error... below is my flutter doctor output: [✓] Flutter (Channel unknown, 2.10.0, on macOS 12.0.1 21A559 darwin-arm, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.2.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] Connected device (4 available) [✓] HTTP Host Availability |
Just checked the create tweet functionality and it is working fine. Maybe the issue you are facing is causing due to some special use cases. Or if you can share the steps to reproduce the issue will help me identify the root cause. |
I've been having this same problem. This happen when you have created an account without have the database setted up yet, so you have the account (created by firebase authentication) but you dont have the data about the user in the database (firestore database or realtime database) because the database were not accesible when you have created the account, so is impossible to load the userModel with the data from the database, because there's no data about the user in the database to load from. |
after writing a caption and selecting an image when i click on Tweet button to post my tweet it shows error in console and the loading icon is continuously spinning.
The error:
E/flutter ( 4210): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Null check operator used on a null value
E/flutter ( 4210): #0 _ComposeTweetReplyPageState.createTweetModel (package:flutter_twitter_clone/ui/page/feed/composeTweet/composeTweet.dart:168:28)
E/flutter ( 4210): #1 _ComposeTweetReplyPageState._submitButton (package:flutter_twitter_clone/ui/page/feed/composeTweet/composeTweet.dart:96:34)
E/flutter ( 4210): #2 CustomAppBar._getActionButtons. (package:flutter_twitter_clone/widgets/customAppBar.dart:90:64)
E/flutter ( 4210): #3 OnPressed.ripple. (package:flutter_twitter_clone/ui/theme/extention.dart:36:30)
E/flutter ( 4210): #4 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:989:21)
E/flutter ( 4210): #5 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:198:24)
E/flutter ( 4210): #6 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:608:11)
E/flutter ( 4210): #7 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:296:5)
E/flutter ( 4210): #8 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:230:7)
E/flutter ( 4210): #9 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:563:9)
E/flutter ( 4210): #10 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:94:12)
E/flutter ( 4210): #11 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:139:9)
E/flutter ( 4210): #12 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:539:8)
E/flutter ( 4210): #13 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:137:18)
E/flutter ( 4210): #14 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:123:7)
E/flutter ( 4210): #15 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:439:19)
E/flutter ( 4210): #16 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:419:22)
E/flutter ( 4210): #17 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:322:11)
E/flutter ( 4210): #18 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:374:7)
E/flutter ( 4210): #19 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:338:5)
E/flutter ( 4210): #20 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:296:7)
E/flutter ( 4210): #21 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:279:7)
E/flutter ( 4210): #22 _rootRunUnary (dart:async/zone.dart:1444:13)
E/flutter ( 4210): #23 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter ( 4210): #24 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
E/flutter ( 4210): #25 _invoke1 (dart:ui/hooks.dart:169:10)
E/flutter ( 4210): #26 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:293:7)
E/flutter ( 4210): #27 _dispatchPointerDataPacket (dart:ui/hooks.dart:88:31)
E/flutter ( 4210):
W/ActivityThread( 4210): SCHED: com.nexa.twrt/com.thealphamerc.flutter_twitter_clone.MainActivity [80, r=10060ms, a=2396ms, w=309996ms]
The text was updated successfully, but these errors were encountered: