我已经制作了一个带有项目的侧菜单,但我现在需要为每个项目添加另一个子菜单。
我应该怎么做才能做到这一点?
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)
//....
}