GpWebViewScreen class

Pantalla completa con el chrome estándar de GP (GpPageScaffold) mostrando una URL. Para el caso "levantar en un modal" en vez de navegar a una pantalla nueva, usar GpWebViewModal.

Inheritance

Constructors

GpWebViewScreen({Key? key, required String url, Map<String, String>? headers, List<WebViewCookie>? cookies, String? title, Widget? titleWidget, List<Widget>? actions, Widget? leading, bool centerTitle = false, Future<GpWebViewNavigationDecision> onNavigationRequest(String url)?, String errorTitle = 'No pudimos cargar la página', String errorRetryLabel = 'Reintentar', bool showLoadingOverlay = true, bool disableInputZoom = true, bool debugLogConsole = false, bool debugLogNetwork = false, bool debugLogStorage = false, void onControllerReady(WebViewController controller)?})
const

Properties

actions → List<Widget>?
Botones a la derecha del app bar (ej. compartir, recargar, abrir en el navegador — para acciones que necesiten el WebViewController, combinar con onControllerReady).
final
centerTitle → bool
final
cookies → List<WebViewCookie>?
final
debugLogConsole → bool
final
debugLogNetwork → bool
final
debugLogStorage → bool
final
disableInputZoom → bool
final
errorRetryLabel → String
final
errorTitle → String
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading → Widget?
Reemplaza el botón de volver por defecto (ej. una X en vez de la flecha, si esta pantalla se abre como si fuera un modal).
final
onControllerReady → void Function(WebViewController controller)?
final
onNavigationRequest → Future<GpWebViewNavigationDecision> Function(String url)?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showLoadingOverlay → bool
final
title → String?
final
titleWidget → Widget?
Reemplaza el título de texto por un widget propio (ej. un título con subtítulo, o un logo). Si se pasa, title se ignora.
final
url → String
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited