如何在flutter中将抽屉添加到SilverAppBar?

时间:2019-01-08 11:24:02

标签: flutter

我使用了SilverAppBar,但不知道如何向其添加抽屉。我只想要一个带有抽屉的应用栏,该抽屉在滚动时会隐藏

1 个答案:

答案 0 :(得分:0)

请注意,function generatehtml(){ ticketname = document.getElementById('name').value; ticketemail = document.getElementById('email').value; adultnumber = document.getElementById('adults').value; childnumber = document.getElementById('child').value; while (functionruncount < inputnumber){ grabfirebasecode(); } } function grabfirebasecode(){ ref.limitToFirst(1).once('value', function(snapshot) { for(key in snapshot.val()){ genvar = snapshot.child(key + "/ticketgenerated" ).val(); var genvarpath = "test/" + key + "/ticketgenerated"; if (genvar === "false"){ snapshot.forEach(function(childSnapshot) { ref.child(childSnapshot.key).remove(); }); ref2.child(key).set({ email: ticketemail, ticketgenerated: "true", }); createticket(); } } }); functionruncount ++; } 处理与材料设计相关的所有主要行为。

如果将Scaffold字段添加到drawer,则会自动在您的Scaffold左侧添加一个汉堡菜单图标。

代码:

SilverAppBar