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
相关产品推荐
相关产品推荐

