mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 14:48:41 +00:00
fix #252
This commit is contained in:
parent
3fbf29b4e2
commit
c89a14fc2d
4 changed files with 317 additions and 302 deletions
|
|
@ -274,8 +274,11 @@ class _ChatListViewState extends State<ChatListView> {
|
||||||
}
|
}
|
||||||
|
|
||||||
class UserListItem extends StatefulWidget {
|
class UserListItem extends StatefulWidget {
|
||||||
const UserListItem(
|
const UserListItem({
|
||||||
{required this.user, required this.firstUserListItemKey, super.key});
|
required this.user,
|
||||||
|
required this.firstUserListItemKey,
|
||||||
|
super.key,
|
||||||
|
});
|
||||||
final Contact user;
|
final Contact user;
|
||||||
final GlobalKey? firstUserListItemKey;
|
final GlobalKey? firstUserListItemKey;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -256,7 +256,9 @@ class _ChatMessagesViewState extends State<ChatMessagesView> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return GestureDetector(
|
||||||
|
onTap: () => FocusScope.of(context).unfocus(),
|
||||||
|
child: Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: GestureDetector(
|
title: GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
|
@ -324,8 +326,10 @@ class _ChatMessagesViewState extends State<ChatMessagesView> {
|
||||||
if (reaction.kind == MessageKind.textMessage) {
|
if (reaction.kind == MessageKind.textMessage) {
|
||||||
final content = TextMessageContent.fromJson(
|
final content = TextMessageContent.fromJson(
|
||||||
jsonDecode(reaction.contentJson!) as Map);
|
jsonDecode(reaction.contentJson!) as Map);
|
||||||
size += calculateNumberOfLines(content.text,
|
size += calculateNumberOfLines(
|
||||||
MediaQuery.of(context).size.width * 0.5, 14) *
|
content.text,
|
||||||
|
MediaQuery.of(context).size.width * 0.5,
|
||||||
|
14) *
|
||||||
27;
|
27;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -440,6 +444,7 @@ class _ChatMessagesViewState extends State<ChatMessagesView> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,9 @@ $debugLogToken
|
||||||
context.lang.contactUsReasonFeedback,
|
context.lang.contactUsReasonFeedback,
|
||||||
context.lang.contactUsReasonOther,
|
context.lang.contactUsReasonOther,
|
||||||
];
|
];
|
||||||
return Scaffold(
|
return GestureDetector(
|
||||||
|
onTap: () => FocusScope.of(context).unfocus(),
|
||||||
|
child: Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(context.lang.settingsHelpContactUs),
|
title: Text(context.lang.settingsHelpContactUs),
|
||||||
),
|
),
|
||||||
|
|
@ -217,7 +219,10 @@ $debugLogToken
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
Padding(
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
bottomNavigationBar: Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 40, horizontal: 40),
|
padding: const EdgeInsets.symmetric(vertical: 40, horizontal: 40),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
|
@ -256,8 +261,6 @@ $debugLogToken
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,9 @@ class _ContactUsState extends State<SubmitMessage> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return GestureDetector(
|
||||||
|
onTap: () => FocusScope.of(context).unfocus(),
|
||||||
|
child: Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(context.lang.settingsHelpContactUs),
|
title: Text(context.lang.settingsHelpContactUs),
|
||||||
),
|
),
|
||||||
|
|
@ -87,7 +89,8 @@ class _ContactUsState extends State<SubmitMessage> {
|
||||||
maxLines: 20,
|
maxLines: 20,
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 40, horizontal: 40),
|
padding:
|
||||||
|
const EdgeInsets.symmetric(vertical: 40, horizontal: 40),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
|
|
@ -101,6 +104,7 @@ class _ContactUsState extends State<SubmitMessage> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue