-
Notifications
You must be signed in to change notification settings - Fork 255
Open
Description
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.
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
Labels
No labels