slate_render library
Classes
- BrowserConfiguration
- Additional configuration options for LaunchMode.inAppBrowserView
- CachedNetworkImage
- Image widget to show NetworkImage with caching functionality.
- CachedNetworkImageProvider
- IO implementation of the CachedNetworkImageProvider; the ImageProvider to load network images using a cache.
- ChildContent
- Content
- ContentType
- CountType
- DownloadProgress
-
Progress of the file that is being downloaded from the
originalUrl. - HeadingWidget
- HelperFunction
- ImageWidget
- ListWidget
- MultiImageStreamCompleter
- An ImageStreamCompleter with support for loading multiple images.
- ParagraphWidget
- PlaceholderColor
- SlateRenderer
- TextDirection
- UrlType
- WebViewConfiguration
- Additional configuration options for LaunchMode.inAppWebView.
Enums
- CacheManagerLogLevel
- Log levels of the cache manager. Debug shows failed downloads and verbose also shows successful downloads and cache retrievals.
- LaunchMode
- The desired mode to launch a URL.
Extensions
- ChildContentPatterns on ChildContent
- Adds pattern-matching-related methods to ChildContent.
- ContentPatterns on Content
- Adds pattern-matching-related methods to Content.
Constants
- defaultFontSize → const double
- defaultImageAlignment → const Alignment
- defaultLetterSpacing → const double
- defaultTextHeight → const double
- h1FontSize → const double
- h2FontSize → const double
- h3FontSize → const double
- imageHight → const double
- imageWidth → const double
- maxDisplayLine → const int
- paragraphFontSize → const double
Properties
- timeDilation → double
-
Slows down animations by this factor to help in development.
no setter
Functions
-
canLaunch(
String urlString) → Future< bool> - Checks whether the specified URL can be handled by some app installed on the device.
-
canLaunchUrl(
Uri url) → Future< bool> - Checks whether the specified URL can be handled by some app installed on the device.
-
closeInAppWebView(
) → Future< void> - Closes the current in-app web view, if one was previously opened by launchUrl.
-
closeWebView(
) → Future< void> - Closes the current WebView, if one was previously opened via a call to launch.
-
launch(
String urlString, {bool? forceSafariVC, bool forceWebView = false, bool enableJavaScript = false, bool enableDomStorage = false, bool universalLinksOnly = false, Map< String, String> headers = const <String, String>{}, Brightness? statusBarBrightness, String? webOnlyWindowName}) → Future<bool> - Parses the specified URL string and delegates handling of it to the underlying platform.
-
launchUrl(
Uri url, {LaunchMode mode = LaunchMode.platformDefault, WebViewConfiguration webViewConfiguration = const WebViewConfiguration(), BrowserConfiguration browserConfiguration = const BrowserConfiguration(), String? webOnlyWindowName}) → Future< bool> -
Passes
urlto the underlying platform for handling. -
supportsCloseForLaunchMode(
LaunchMode mode) → Future< bool> -
Returns true if closeInAppWebView is supported for
modein the current platform implementation. -
supportsLaunchMode(
LaunchMode mode) → Future< bool> -
Returns true if
modeis supported by the current platform implementation.
Typedefs
-
ImageWidgetBuilder
= Widget Function(BuildContext context, ImageProvider<
Object> imageProvider) - Builder function to create an image widget. The function is called after the ImageProvider completes the image loading.
- LoadingErrorWidgetBuilder = Widget Function(BuildContext context, String url, Object error)
- Builder function to create an error widget. This builder is called when the image failed loading, for example due to a 404 NotFound exception.
- PlaceholderWidgetBuilder = Widget Function(BuildContext context, String url)
- Builder function to create a placeholder widget. The function is called once while the ImageProvider is loading the image.
- ProgressIndicatorBuilder = Widget Function(BuildContext context, String url, DownloadProgress progress)
- Builder function to create a progress indicator widget. The function is called every time a chuck of the image is downloaded from the web, but at least once during image loading.