justkawal / excel

Excel Library for Flutter and Dart - https://pub.dev/packages/excel
MIT License
424 stars 235 forks source link

createExcel() gives StateError (Bad state: No element) #374

Open Istiak-Ahmed78 opened 1 month ago

Istiak-Ahmed78 commented 1 month ago
var exelInstance = Excel.createExcel();

This gives error.

ERROE

I cannot initiate Excel to create a new excel sheet. Please help

Currently using excel version: excel: ^4.0.6

Flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.1, on Microsoft Windows [Version 10.0.19045.4842], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.5)
[√] Android Studio (version 2024.1)
[√] Connected device (4 available)
[√] Network resources

• No issues found!
Nimo11 commented 3 weeks ago

Same here

halgh commented 2 weeks ago

Same issue here, it seems that when I disable 'All Exceptions' in breakpoints when running the app in vscode, the error doesn't appear and creation of the file is still successful.