You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows平台Flutter AdaptiveNavigationScaffold出现黑线问题求助

Windows Flutter应用中AdaptiveNavigationScaffold出现黑线问题

我在Windows Flutter应用中使用以下AdaptiveNavigationScaffold实现导航:

Widget build(BuildContext context) => AdaptiveNavigationScaffold(
      selectedIndex: StatefulShellRoute.of(context).currentIndex,
      drawerHeader: SizedBox(
        child: Container(
          color: Colors.red,
        ),
        height: 200,
        width: double.infinity,
      ),
      drawerScrimColor: Colors.white,
      backgroundColor: Colors.white,
      bottomNavigationOverflow: 10,
      body: ClipRect(child: child),
      onDestinationSelected: (int idx) => _goBranch(context, idx),
      destinations: branches.map((e) => e.adaptiveDestination).toList(),
    );

配合go_router处理导航、状态等功能一切正常,但界面出现一条无法定位来源的黑线。经确认该问题仅在Windows端存在,Web端运行时无此现象,我已尝试配置AdaptiveNavigationScaffold的所有参数,仍未解决问题。

问题展示:
界面黑线问题展示

该问题已在Material Components Flutter Adaptive的GitHub仓库提交了问题报告。

内容的提问来源于stack exchange,提问作者CEW

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.07 03:55:15