当前位置:网站首页>Flutter drawer learning summary 6

Flutter drawer learning summary 6

2022-06-10 14:13:00 tnan2522

drawer

drawer Is the sidebar component , A sidebar icon appears in the top navigation bar , When clicked , The left sidebar page will slide out
Such as
 Insert picture description here
When clicking or sliding left
 Insert picture description here

Pop up the page of the sidebar
You can use... In the sidebar UserAccountsDrawerHeaderhead Head assembly ,
 Insert picture description here
A layout like this
 Insert picture description here

endDrawer

and Drawer The corresponding is endDrawer Right component , Bureau and the right side of the status bar , Drawer Some properties in endDrawer There are

Jump

When we click Page jump on the sidebar, we will find that the sidebar page is returned , At this point we want to return to TabBar What to do with the page ? This can be used when clicking jump pop Back to TabBar On the page , And then jump , In this way, the page returned after the successful jump is TabBar Page
 Insert picture description here

原网站

版权声明
本文为[tnan2522]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206101339433247.html