CopyPastor

Detecting plagiarism made easy.

Score: 0.8962883479951873; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2019-08-09
by 缘去皆空

Original Post

Original - Posted on 2019-08-09
by 缘去皆空



            
Present in both answers; Present only in the new answer; Present only in the old answer;

unzip the apk package,I found the reason: path is wrong;
For Android:
`"assets/test.html" == "file:///android_asset/flutter_assets/assets/test.html"`
so,just like this:
WebView( initialUrl: "file:///android_asset/flutter_assets/assets/test.html", javascriptMode: JavascriptMode.unrestricted, )

you can load "assets/test.html".
unzip the apk package,I found the reason: path is wrong;
For Android:
`"assets/test.html" == "file:///android_asset/flutter_assets/assets/test.html"`

so,just like this:
WebView( initialUrl: "file:///android_asset/flutter_assets/assets/test.html", javascriptMode: JavascriptMode.unrestricted, )

you can load "assets/test.html".

        
Present in both answers; Present only in the new answer; Present only in the old answer;