Skip to content

Please upgrade to latest version of Flutter for desktop_webview_window #454

@adrian-moisa

Description

@adrian-moisa

I need a simple fix to get desktop_webview_window running in flutter_web_auth_2. My android build fails becasue desktop_webview_window is stuck in an older API.

Image

This:

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home:
          color:
              widget.backgroundColor ?? Theme.of(context).scaffoldBackgroundColor,
          Padding(
        padding: EdgeInsets.only(top: widget.titleBarTopPadding.toDouble()),
        child: TitleBarWebViewState(
          isLoading: _isLoading,
          canGoBack: _canGoBack,
          canGoForward: _canGoForward,
          url: _url,
          child: Builder(builder: widget.builder),
        ),
      ),
    );
  }

Becomes this
Or whatever other fix you think it's needed to get it running on latest SDK. Thanks!

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold( // Assuming a Scaffold is the intended parent
        backgroundColor: widget.backgroundColor ?? Theme.of(context).scaffoldBackgroundColor,
        body: Padding(
          padding: EdgeInsets.only(top: widget.titleBarTopPadding.toDouble()),
          child: TitleBarWebViewState(
            isLoading: _isLoading,
            canGoBack: _canGoBack,
            canGoForward: _canGoForward,
            url: _url,
            child: Builder(builder: widget.builder),
          ),
        ),
      ),
    );
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions