无法定义在已在扩展栏下的列表视图生成器中按下图标按钮时将打开的 Web 链接

not able to define web links that will open when icon button is pressed in listview builder which is already under expantionbar

(问题 1) 我想不出如何通过 3 weblink link ( google.com, yahoo.com, youtube.com)在代码中按下主题 1 中的 3 个相应图标时打开: https://github.com/sandeepnarula999/FlutterProjects/blob/main/ListViewUnderExpansionTile 如果您能够解决我的问题,请尝试分享完整的代码..正如我在上面分享的完整代码一样...请做 不只是分享如何做的步骤,因为当我尝试时可能会导致错误

(问题2) As per below image suggestion when i try to change code from line 7 to 10 in abve code link i get errors.. are u able to get zero error with this below approach in image

解决方案:在 Row 小部件中添加三个 Flexible 小部件 ;)

if (root.children.isEmpty) {
      return ListTile(
        title: Text(root.title),
        subtitle: root.subtitle == null ? null : Text(root.subtitle!),
        trailing: Row(
          mainAxisSize: MainAxisSize.min,
          children: [
            Flexible(
              child: IconButton(
                onPressed: () {},
                icon: const Icon(Icons.auto_stories),
                iconSize: 30,
                tooltip: 'Documents',
              ),flex: 1,
            ),
            Flexible(
              child: IconButton(
                onPressed: () {},
                icon: const Icon(Icons.video_collection_rounded),
                iconSize: 30,
                tooltip: 'Videos',
              ),
              flex: 1,
            ),
            Flexible(
              child: IconButton(
                onPressed: () {},
                icon: const Icon(Icons.favorite),
                iconSize: 20,
                tooltip: 'Shortlist',
              ),flex: 1,
            ),
          ],
        ),
      );
    }

enter image description here