-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Open
flutter/packages
#10397Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectp: cross_fileThe cross_file pluginThe cross_file pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
The current implementation of the cross_file class for web deals with a "DOM Element" _target that is used to inject some DOM required to Save a XFile As... here.
That functionality should be stripped out of the XFile to a helper object (similar to everything else that is DOM-related), and the XFile delegate itself to this DOM helper when it needs to save:
/// Saves the data of this CrossFile at the location indicated by path.
/// For the web implementation, the path variable is ignored.
@override
Future<void> saveTo(String path) async {
domHelper.saveFileAs(this, path);
}
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectp: cross_fileThe cross_file pluginThe cross_file pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team