我的整个应用程序在模拟器和 Moto-G5S 中完美运行,但我发现在 Samsung Galaxy A6+ 的 SliverGrid View 中加载数据时出错。\n我的错误是“maxPaintExtent 小于paintExtent,maxPaintExtent 为177.5,但paintExtent 为612.0。根据定义,条子绘制的内容不能超过它可以绘制的最大值!”
\n\n我尝试了不同的 SliverGrid gridDelegate,例如 maxCrossAxisExtent: 300.0、mainAxisSpacing: 5.0、crossAxisSpacing: 5.0、childAspectRatio: 1.0 但我仍然无法修复它。\n我如何设置 maxPaintExtent?\n提前谢谢。
\n\n系列.dart
\n\nclass SeriesScreen extends StatefulWidget {\n SeriesScreen({Key key}) : super(key: key);\n\n @override\n _SeriesScreenState createState() => new _SeriesScreenState();\n}\n\nclass _SeriesScreenState extends State<SeriesScreen> {\n bool isHomeDataLoading;\n\n @override\n void initState() {\n super.initState();\n isHomeDataLoading = false;\n }\n\n @override\n Widget build(BuildContext context) {\n return Scaffold(\n backgroundColor: Colors.white,\n appBar: ComComp.getAppBar(COLORS.SERIES_THEME_COLOR, STRING_NAME.SERIES_MOVIE),\n body: CustomScrollView(\n shrinkWrap: false,\n slivers: <Widget>[\n makeHeader(STRING_NAME.MOVIE),\n Container(\n child: FutureBuilder(\n …Run Code Online (Sandbox Code Playgroud) flutter ×1