0

我已经制作了一个带有项目的侧菜单,但我现在需要为每个项目添加另一个子菜单。

我应该怎么做才能做到这一点?

class CustomListTitle extends StatelessWidget{
    //....
    Row(
      children: <Widget>[
      Icon(icon),
      Padding(
        padding: const EdgeInsets.all(8.0),
        child: Text(text, style: TextStyle(
          fontSize: 16.0
        ),),
      ),
      ],
     ),
    Icon(Icons.arrow_right)
    //....
}
4

1 回答 1

0

我不完全确定你想要什么,但如果你想要的基本上是这样的: 在此处输入图像描述 除了你的侧边菜单,那么我建议你查看ExpansionPanels

于 2019-05-22T04:21:04.463 回答