File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2525// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2626// SOFTWARE.
2727///
28- /// Authors: Anushka Vidanage, Dawei Chen
28+ /// Authors: Anushka Vidanage, Dawei Chen, Jess Moore
2929
3030library ;
3131
@@ -110,8 +110,10 @@ Future<String> filenameToResourceUrl({
110110 isFileUrl = true ;
111111 }
112112
113- // If not already a url, get url
114- if (! isExternalRes && ! isFileUrl) {
113+ // If resource name lacks a url scheme, is not an
114+ // externally owned resource and is not already
115+ // declared as a url, then form url from resource name
116+ if (! Uri .parse (fileName).hasScheme && ! isExternalRes && ! isFileUrl) {
115117 // Get the file path
116118 // Ensure path uses correct path separators and
117119 // has app data dir prepended.
You can’t perform that action at this time.
0 commit comments