Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update webview_flutter.dart
  • Loading branch information
uc-apa authored May 3, 2020
commit ca3e742d7fc0d809798c6bfccb8ecc316d1f5945
9 changes: 9 additions & 0 deletions packages/webview_flutter/lib/webview_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ class WebView extends StatefulWidget {

/// The initial URL to load.
final String initialUrl;

/// The initial baseURL to load.
final String baseUrl;

/// The initial static html to load.
final String html;

/// Whether Javascript execution is enabled.
Expand Down Expand Up @@ -554,7 +558,12 @@ class WebViewController {
return _webViewPlatformController.loadUrl(url, headers);
}

/// Loads the specified html.
///
/// `html` must not be null.
///
Future<void> loadHtml(String html) async {
assert(html != null);
return _webViewPlatformController.loadHtml(html);
}

Expand Down