lohanidamodar / pdf_viewer

A flutter plugin for handling PDF files. Works on both Android & iOS
https://pub.dev/packages/advance_pdf_viewer
BSD 3-Clause "New" or "Revised" License
61 stars 144 forks source link

Loading document from Url is throwing exception. #19

Open mahendary opened 3 years ago

mahendary commented 3 years ago

Loading document from Url is throwing below exception.

`======== Exception caught by widgets library ======================================================= The following NoSuchMethodError was thrown building _BodyBuilder: The getter 'count' was called on null. Receiver: null Tried calling: count

The relevant error-causing widget was: Scaffold file:///Users/kh369/Desktop/Mahi/PersonalWork/Mihy/Src/mihy/lib/Forms/viewAttachement.dart:58:12 When the exception was thrown, this was the stack:

0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)

1 _PDFViewerState.initState (package:advance_pdf_viewer/src/viewer.dart:99:35)

2 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4812:57)

3 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4649:5)

... Normal element mounting (19 frames) ... ====================================================================================================`

budescode commented 3 years ago

just disconnect your app and run again

Amr1440 commented 3 years ago

Same issue :(