gpt4 book ai didi

dart - Flutter-WebViewScaffold后面的Drawer菜单

转载 作者:行者123 更新时间:2023-12-03 04:01:19 24 4
gpt4 key购买 nike

我有类stateLessWidget,在这里我想:

1)加载带有URL的网页(效果很好)
2)使用抽屉菜单(效果很好)

问题:我的抽屉菜单在 View 后面:(。

也许是因为WebviewScaffold稍后加载抽屉菜单?

感谢你们!

我的主页无状态小部件

Widget build(BuildContext context) {

return Scaffold(

appBar: AppBar(
title: Text(
'Benvenuto',
style: TextStyle(color: Colors.white)
),
backgroundColor: Color(0xFF4035b1),
),

drawer: Drawer(
child: new Column(
children: <Widget>[
new UserAccountsDrawerHeader(
accountName: Text('TEST.IT', style: TextStyle(color:Color(0xFFFFFFFF))),
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
Color(0xFF584CD1),
Color(0xFF0fd1c0)
],
begin: FractionalOffset(0.4, 0.2),
end: FractionalOffset(1.0, 0.6),
stops: [0.0, 0.9],
tileMode: TileMode.clamp
)
),
accountEmail: Text("TEST TEXT", style: TextStyle(color:Color(0xFFFFFFFF))),
currentAccountPicture: new CircleAvatar(
radius: 50.0,
backgroundColor: const Color(0xFF778899),
backgroundImage: NetworkImage("https://domain.it/images/user.jpg"),
)
),
new Column(children: drawerOptions)
],
),
),

body: WebviewScaffold(
url: "https://domain.it/api/api_booking",
withJavascript: true,
headers: {'Authorization': 'Bearer ' + tokenAccess},
/*appBar: new AppBar(
title: Text("Test page"),
),*/
withZoom: true,
withLocalStorage: true,
hidden: true,
)
);
// return
}

enter image description here

最佳答案

Scaffold替换为WebviewScaffold并从主体中删除WebviewScaffold,您正在做的是嵌套脚手架。

关于dart - Flutter-WebViewScaffold后面的Drawer菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56247420/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com