-
Notifications
You must be signed in to change notification settings - Fork 17
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
[WIP]TW-2042 Update contacts screen ui #2057
base: main
Are you sure you want to change the base?
Conversation
This PR has been deployed to https://linagora.github.io/twake-on-matrix/2057 |
eea142a
to
99f30bc
Compare
|
color: LinagoraStateLayer(LinagoraSysColors.material().surfaceTint) | ||
.opacityLayer3, |
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.
const SizedBox( | ||
width: 12.0, | ||
), |
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.
fixed
contactDisplayName: contact.displayName, | ||
highlightKeyword: highlightKeyword, | ||
style: LinagoraTextStyle.material() | ||
.bodyMedium2 |
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.
and color is not true too.
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.
fixed
.textTheme | ||
.bodyMedium | ||
?.copyWith( | ||
color: LinagoraRefColors.material().neutral[60], |
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.
fixed
.textTheme | ||
.bodyMedium | ||
?.copyWith( | ||
color: LinagoraRefColors.material().neutral[60], |
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.
idem?
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.
fixed
|
||
static EdgeInsetsDirectional appbarPadding = | ||
const EdgeInsetsDirectional.symmetric( | ||
horizontal: 16.0, | ||
); | ||
|
||
static EdgeInsetsDirectional contentPadding = EdgeInsetsDirectional.zero; | ||
static const double textStyleHeight = 24 / 17; |
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 is it? can you explain it?
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.
The contacts at the bottom are from my phonebook 2042_phoneBook.webm |
|
|
import 'package:linagora_design_flutter/linagora_design_flutter.dart'; | ||
import 'package:matrix/matrix.dart'; | ||
|
||
class ContactsTabBodyView extends StatelessWidget { | ||
final ContactsTabController controller; | ||
final bool enableFriendsInvite = false; |
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 it doesn't change use const
for it.
size: 48.0, | ||
return TwakeListItem( | ||
child: Padding( | ||
padding: const EdgeInsets.only(left: 8.0, top: 8.0, bottom: 8.0), |
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.
padding: const EdgeInsets.only(left: 8.0, top: 8.0, bottom: 8.0), | |
padding: const EdgeInsetsDirectional.only(start: 8.0, top: 8.0, bottom: 8.0), |
: null, | ||
builder: (context, snapshot) { | ||
return Row( | ||
crossAxisAlignment: CrossAxisAlignment.center, |
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.
CrossAxisAlignment.center
is the default value so we don't need to set it again.
@@ -23,7 +23,7 @@ class SearchTextField extends StatelessWidget { | |||
@override | |||
Widget build(BuildContext context) { | |||
return Material( | |||
borderRadius: BorderRadius.circular(16.0), | |||
borderRadius: BorderRadius.circular(24.0), |
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.
borderRadius: BorderRadius.circular(24.0), | |
borderRadius: const BorderRadius.all(Radius.circular(24.0)), |
itemBuilder: (context, index) { | ||
return widget.itemBuilder(context, index); | ||
}, |
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.
itemBuilder: (context, index) { | |
return widget.itemBuilder(context, index); | |
}, | |
itemBuilder: widget.itemBuilder, |
Ticket
#2042
Resolved
Attach screenshots or videos demonstrating the changes
Web:
Android:
IOS: