You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A value of type 'Directory/*1*/' can't be assigned to a variable of type 'Directory/*2*/'. - 'Directory/*1*/' is from 'dart:io'. - 'Directory/*2*/' is from 'package:universal_io/src/io/directory.dart'
#29
Open
amirsuwal01 opened this issue
Feb 16, 2022
· 5 comments
this is because path_provider does not have web support
Don't think that is specific to the path_provider. Any API from a plugin declaring dependency on the File or Directory from the dart:io will choke when you try to pass values from univeral_io to them or try to assign values returned from such API to the variables typed from the universal_io.
E.g. in case of the path_provider, a workaround for non-web platforms is like:
Directory dir = Directory('${(await getApplicationSupportDirectory()).path}')
Though I wasn't been able to find a way to create a Directory instance on the web platform and would appreciate any help with that.
No description provided.
The text was updated successfully, but these errors were encountered: