小编J R*_*rto的帖子

如何在Flutter中创建的应用程序中隐藏AppBar

我有下面的代码,我想隐藏栏应用程序,可以吗?我已经尝试直接使用 Android 主题,但没有成功。:(

  @override
  Widget build(BuildContext context) {
    return WebviewScaffold(
      appBar: AppBar(
        title: TextField(
          autofocus: false,
          controller: controller,
          textInputAction: TextInputAction.go,
          onSubmitted: (url) => launchUrl(),
          style: TextStyle(color: Colors.white),
          decoration: InputDecoration(
            border: InputBorder.none,
            hintText: "Digite a URL",
            hintStyle: TextStyle(color: Colors.white),
          ),
        ),
        actions: <Widget>[
          IconButton(
            icon: Icon(Icons.navigate_next),
            onPressed: () => launchUrl(),
          )
        ],
      ),
Run Code Online (Sandbox Code Playgroud)

flutter

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

flutter ×1