Skip to content
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

Merged
merged 3 commits into from
Oct 23, 2023
Merged

Conversation

nqhhdev
Copy link
Member

@nqhhdev nqhhdev commented Oct 19, 2023

Issue:

Resolved:

  • Mobile
Screen.Recording.2023-10-19.at.14.40.40.mov
  • Web
3.mov
2.mov
1.mov

@nqhhdev nqhhdev temporarily deployed to PR-840 October 19, 2023 05:42 — with GitHub Actions Inactive
@github-actions
Copy link

This PR has been deployed to https://linagora.github.io/twake-on-matrix/840

key: const PageStorageKey("members"),
members: members ?? [],
actualMembersCount: actualMembersCount,
canRequestMoreMembers: members!.length < actualMembersCount,
Copy link
Contributor

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 ?

Copy link
Member Author

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(),
Copy link
Contributor

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.

Copy link
Member Author

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.

@nqhhdev nqhhdev temporarily deployed to PR-840 October 22, 2023 14:34 — with GitHub Actions Inactive
@nqhhdev nqhhdev temporarily deployed to PR-840 October 23, 2023 03:18 — with GitHub Actions Inactive
@hoangdat
Copy link
Member

pleaes rebase

@nqhhdev nqhhdev force-pushed the TW-826-improvement-chat-details branch from 5a9738e to 11df0c4 Compare October 23, 2023 04:02
@nqhhdev nqhhdev force-pushed the TW-826-improvement-chat-details branch from 11df0c4 to aa9a0c3 Compare October 23, 2023 05:06
@hoangdat hoangdat merged commit 300042b into main Oct 23, 2023
3 checks passed
@hoangdat hoangdat deleted the TW-826-improvement-chat-details branch October 23, 2023 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants