Open abineshPalanisamy opened 3 months ago
Reproduced the issue as reported on Flutter master channel as well.
Hi @abineshPalanisamy thanks for reporting this! I am not sure if this is an issue with the framework, it looks like you have your own custom render object handling the layout.
The sample is also quite large, can you try to reduce the amount of code here so it is easier to identify where the issue is coming from? https://github.com/flutter/flutter/tree/master/docs/contributing/issue_hygiene#provide-reduced-test-cases
Hi @Piinks ,
We have already provided the sample with the required code changes and ensured the offsets and positions are correct. There is no issue with the layout. This is why we could only reproduce the issue when RepaintBoundary is set to true.
Unfortunately it is not currently clear if this is an issue with the provided code or the framework. If it is at all possible to reduce the sample, let us know and we can take another look!
Steps to reproduce
Expected results
Items should render properly even with a large record count. The heights of the items should be maintained correctly.
Actual results
Code sample
Code sample
```dart // ignore_for_file: must_be_immutable import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:collection/collection.dart'; void main() { runApp(MaterialApp( home: Scaffold( appBar: AppBar( title: Text('Custom List Sample'), ), body: CustomList(), ), )); } class CustomList extends StatelessWidget { CustomList({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return LayoutBuilder(builder: (context, constraints) { return ListContainerWidget(constraints); }); } } class ListContainerWidget extends StatefulWidget { const ListContainerWidget(this.constraints, {super.key}); final BoxConstraints constraints; @override StateScreenshots or Video
Screenshots / Video demonstration
https://github.com/flutter/flutter/assets/120440951/d392a6e2-930d-42ff-923d-be958fea691bLogs
Logs
```console [Paste your logs here] ```Flutter Doctor output
Doctor output
```console Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.19045.4529], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Professional 2022 17.9.6) [√] Android Studio (version 2021.3) [√] VS Code (version 1.90.2) [√] Connected device (3 available) [√] Network resources • No issues found! ```