-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add stack to avoid_single_child #57
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Text('World'), | ||
], | ||
), | ||
// expect_lint: avoid_single_child | ||
SliverList.list( | ||
children: const [ | ||
Text('World'), | ||
Text('Hello'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made this change because I believe the text should be alternated, like "Hello" and "World," similar to how you would arrange them in a Column or Row. Specifically, I placed the Stack widget under the Wrap widget, so I wrote "Hello," and since the ListView widget is under the Stack, I decided "World" should be written to alternate the text.
The following commit adds a fix to make both Hello.
a21c8a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, you thought about what would happen if it appeared on the screen!
Please comment why next time.
Co-authored-by: Ryunosuke Muramatsu <[email protected]>
Co-authored-by: Ryunosuke Muramatsu <[email protected]>
🔗 Related Issues
🙌 What's Done
✍️ What's Not Done
🖼️ Image Differences
🤼 Desired Review Method
Note
It is possible that a reviewer's will may cause a method to be implemented that is not selected.
📝 Additional Notes
Pre-launch Checklist