-
Notifications
You must be signed in to change notification settings - Fork 20
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
TW-826: Improvement chat details #840
Conversation
This PR has been deployed to https://linagora.github.io/twake-on-matrix/840 |
lib/presentation/same_type_events_builder/same_type_events_list_builder.dart
Outdated
Show resolved
Hide resolved
key: const PageStorageKey("members"), | ||
members: members ?? [], | ||
actualMembersCount: actualMembersCount, | ||
canRequestMoreMembers: members!.length < actualMembersCount, |
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.
what if members is null ?
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.
if members is null => can't loadmore
valueListenable: controller.loadingMore, | ||
builder: (context, loadingMore, child) => SliverToBoxAdapter( | ||
child: | ||
loadingMore ? const CenterLoadingIndicator() : const SizedBox(), |
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.
We use SizedBox()
, SizedBox.shrink()
, Container()
in the application IMO we should be more consistent and choose one to make an empty widget.
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.
In this case i think we need use SizedBox() or SizedBox.shrink()
because If you need a highly customizable widget with support for a wide range of layout properties, then Container is the way to go. But if you need a lightweight widget that can enforce a fixed size constraint or create a fixed-size gap between widgets, then SizedBox is the clear winner.
pleaes rebase |
5a9738e
to
11df0c4
Compare
11df0c4
to
aa9a0c3
Compare
Issue:
Resolved:
Screen.Recording.2023-10-19.at.14.40.40.mov
3.mov
2.mov
1.mov