Open SittiphanSittisak opened 1 week ago
Hi @SittiphanSittisak, We are unable to run the code you have shared. Could you please provide the full code? This would help us replicate the exact scenario of the issue.
Hi @immankumarsync, I updated my code.
Hi @SittiphanSittisak, We have checked the reported case with the code you share. But, we are unable to replicate the issue. Please find the video recording below,
https://github.com/syncfusion/flutter-widgets/assets/93641486/9cba6ac3-b264-49f4-9d14-dcf77c250209
Bug description
After the PDF widget is loaded, if the PDF widget was setState the PDF widget will error.
Steps to reproduce
Code sample
Code sample
```dart //pubspec.yaml syncfusion_flutter_pdfviewer: ^26.1.38 file_picker: ^8.0.5 //main.dart import 'dart:typed_data'; import 'package:file_picker/file_picker.dart'; import 'package:flutter/material.dart'; import 'package:syncfusion_flutter_pdfviewer/pdfviewer.dart'; void main() { WidgetsFlutterBinding.ensureInitialized(); runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true, ), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } } class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title}); final String title; @override StateScreenshots or Video
Screenshots / Video demonstration
https://github.com/syncfusion/flutter-widgets/assets/59549741/0adae137-12e2-4fa6-b5fb-bef44f292fbcStack Traces
Stack Traces
```dart ======== Exception caught by widgets library ======================================================= The following TypeErrorImpl was thrown building FutureBuilderOn which target platforms have you observed this bug?
Web
Flutter Doctor output
Doctor output
```console Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.19.2, on Microsoft Windows [Version 10.0.19045.4529], locale th-TH) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.6) [√] Android Studio (version 2023.2) [√] VS Code (version unknown) X Unable to determine VS Code version. [√] Connected device (3 available) [√] Network resources • No issues found! ```