-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
Cannot delete sheets #346
Comments
I am facing this issue while using the |
Apparently they are trying to call
|
Could anyone please confirm if that issue continues on 4.0.x? |
I'm able to rename sheets that I create.
I cannot delete "Sheet1", however. It gives me this error:
|
If I remove the block of code that is throwing an exception then I can delete Sheet1:
What is the purpose of deleting from the unmodifiable list? |
I upgraded to v4.0.3 and this was fixed, even for Sheet1. |
Calling excel.delete(sheetName) can throw this error:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: Cannot remove from an unmodifiable list
E/flutter (20043): #0 UnmodifiableListMixin.removeWhere (dart:_internal/list.dart:139:5)
The problem seems to be trying to delete from _archive.files, which is an UnmodifiableListView
The text was updated successfully, but these errors were encountered: