macOS flutter listtitle 隐藏显示 title

Flutter3年前 (2023)发布 admin
564 0

//       drawer: Drawer(
//         child: ListView(
//           // Important: Remove any padding from the ListView.
//           padding: EdgeInsets.zero,
//           children: <Widget>[
//             DrawerHeader(
//               child: Text('Drawer Header'),
//               decoration: BoxDecoration(
//                 color: Colors.blue,
//               ),
//             ),
//             Visibility(
//                 visible: true,
//                 child: ListTile(
//                   title: Text('Item 1'),
//                   onTap: () {
//                     print("You tapped Item 1"); // get.to
//                   },
//                 )),
//             Visibility(
//                 visible: true,
//                 child: ListTile(
//                   title: Text('Item 2'),
//                   onTap: () {
//                     Get.to(Other());
//                     print("You tapped Item 2");
//                   },
//                 )),
//           ],
//         ),
//       ),

© 版权声明

相关文章