作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有类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
}
最佳答案
将Scaffold
替换为WebviewScaffold
并从主体中删除WebviewScaffold
,您正在做的是嵌套脚手架。
关于dart - Flutter-WebViewScaffold后面的Drawer菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56247420/
我正在使用WebviewScaffold包中的flut flutter_webview_plugin的非常简单的实现。 当我弹出嵌入Webview支架的屏幕时,首先弹出屏幕,然后Webview在屏幕上
我尝试在 Widget 中打开的 Webview 上覆盖一个 floatingActionButton。 "/widget": (_) => new WebviewScaffold(
我打算在 WebviewScaffold 上打开 AlertDialog 但它没有显示。当我打开 AlertDialog 时,它出现在 WebviewScaffold 下。 下面是我的代码, chil
我是一名优秀的程序员,十分优秀!