Gau*_*mar 2 flutter flutter-layout
如果单击抽屉右上角创建的关闭按钮,是否有关闭抽屉的方法。
模拟抽屉:
Tin*_*son 7
只需调用 Navigator.of(context).pop();
例子:
ListTile( title: Text('Item 1'), onTap: () { // Update the state of the app. // ... // Then close the drawer. Navigator.pop(context); }, ),
归档时间:
6 年,11 月 前
查看次数:
2214 次
最近记录: