- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我正在尝试在 flutter 中创建一个基本的“新事件”
我已经关注了 flutters docs并制作了一个导航到下一页的按钮:
Navigator.push(context, new MaterialPageRoute(builder: (context)=> new HomePage(title: title,)));
这是第二个页面/事件(HomePage.dart)的构建方法
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text("Home"),
textTheme: orbitTextTheme),
body: new Center(
child: new Container(
color: Color.orange,
height: 150.0,
width: 150.0,
child:new Column(
children: <Widget>[
new TextField(
controller: _textController,
decoration: new InputDecoration(
hintText: "Try to type?"
),
)
],
),
),
),
floatingActionButton: new FloatingActionButton(
onPressed: _newReg,
tooltip: 'New reg', //externalize
backgroundColor: Color.orange,
child: new Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
但是,第二页不是全尺寸:(注意缺少 float 操作按钮) 谁能告诉我哪里做错了?
更新在来自 googleSignIn 的回调中调用 Navigator.push(
(呈现模态)。所以稍微延迟一下就修复了这个错误。谢谢!
最佳答案
每当您在插入新路线之前弹出最后可见路线时,就会发生此图形错误。
考虑改用 pushReplacement
或 pushReplacementNamed
。
关于dart - flutter 导航流程中的第二页不是全尺寸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49878854/
我的网站使用 AmCharts,我想将其设为全尺寸。例如,我有以下代码: #chartdiv { width : 50%; height : 500px; float : left; } var
您需要使用edge或mozilla打开以下页面。 这是页面:codepen.io 这是我尝试过的: html{ max-height:1900px; max-width:2600px; } 因
我正在尝试通过以下代码使 html5 canvas 变为全尺寸。我知道还有其他使用 javascript 的方法,但是这有什么问题吗? Canvas_dot #m
如何达到outerPanel的全宽? private JPanel createLabelPanel() { final JToolTip tt = new JToolTip(
我的页面分为 3 个部分。 , 和 . 固定在顶部,大小为 109px,边框高 6px,因此 到顶部有 109 像素的边距。 我想要 扩展到 下面的整个页面和 那应该,如果没有可用于将其向下推的
我有一个网站需要在浏览器窗口中完全独立,即用户不必上下滚动即可查看网站的不同部分。太长而无法放入内容 Pane 的内容由 overflow:auto 处理,效果很好。 问题是,无论我怎么尝试,我仍然遇
我正在尝试设置一个网页,但由于我的元素的高度,我快疯了。特别是,我想要的布局是: 顶部有一个固定高度(例如 150 像素)和 100% 宽度的标题。 在标题下,我需要两列。左边的列有固定的宽度(例如
如何在 XAML 中将根布局的尺寸设置为 的 100% 宽度和高度?包含 Silverlight 应用程序的标记。 我试过指定 100%,但宽度和高度属性只采用单位文字(精确像素)。有没有办法让 S
ONLINE SAMPLE 我想让第一个 div layer1(红色 block )显示窗口的完整大小,可缩放。Layer2(蓝色 block )假设始终在 layer1 之下。但是,当我将窗口高度变
我不确定如何解释我到底想要什么(这也很难用谷歌搜索),但我想创建一个表格,每个单元格都有特定的宽度和高度(比如 40x40 像素) . 这个表格将比视口(viewport)大很多,所以它需要一些滚动,
我是一名优秀的程序员,十分优秀!