This commit is contained in:
otsmr 2025-07-17 20:58:46 +02:00
parent 3fbf29b4e2
commit c89a14fc2d
4 changed files with 317 additions and 302 deletions

View file

@ -274,8 +274,11 @@ class _ChatListViewState extends State<ChatListView> {
}
class UserListItem extends StatefulWidget {
const UserListItem(
{required this.user, required this.firstUserListItemKey, super.key});
const UserListItem({
required this.user,
required this.firstUserListItemKey,
super.key,
});
final Contact user;
final GlobalKey? firstUserListItemKey;

View file

@ -256,7 +256,9 @@ class _ChatMessagesViewState extends State<ChatMessagesView> {
@override
Widget build(BuildContext context) {
return Scaffold(
return GestureDetector(
onTap: () => FocusScope.of(context).unfocus(),
child: Scaffold(
appBar: AppBar(
title: GestureDetector(
onTap: () {
@ -324,8 +326,10 @@ class _ChatMessagesViewState extends State<ChatMessagesView> {
if (reaction.kind == MessageKind.textMessage) {
final content = TextMessageContent.fromJson(
jsonDecode(reaction.contentJson!) as Map);
size += calculateNumberOfLines(content.text,
MediaQuery.of(context).size.width * 0.5, 14) *
size += calculateNumberOfLines(
content.text,
MediaQuery.of(context).size.width * 0.5,
14) *
27;
}
}
@ -440,6 +444,7 @@ class _ChatMessagesViewState extends State<ChatMessagesView> {
),
),
),
),
);
}
}

View file

@ -151,7 +151,9 @@ $debugLogToken
context.lang.contactUsReasonFeedback,
context.lang.contactUsReasonOther,
];
return Scaffold(
return GestureDetector(
onTap: () => FocusScope.of(context).unfocus(),
child: Scaffold(
appBar: AppBar(
title: Text(context.lang.settingsHelpContactUs),
),
@ -217,7 +219,10 @@ $debugLogToken
});
},
),
Padding(
],
),
),
bottomNavigationBar: Padding(
padding: const EdgeInsets.symmetric(vertical: 40, horizontal: 40),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
@ -256,8 +261,6 @@ $debugLogToken
],
),
),
],
),
),
);
}

View file

@ -64,7 +64,9 @@ class _ContactUsState extends State<SubmitMessage> {
@override
Widget build(BuildContext context) {
return Scaffold(
return GestureDetector(
onTap: () => FocusScope.of(context).unfocus(),
child: Scaffold(
appBar: AppBar(
title: Text(context.lang.settingsHelpContactUs),
),
@ -87,7 +89,8 @@ class _ContactUsState extends State<SubmitMessage> {
maxLines: 20,
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 40, horizontal: 40),
padding:
const EdgeInsets.symmetric(vertical: 40, horizontal: 40),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
@ -101,6 +104,7 @@ class _ContactUsState extends State<SubmitMessage> {
],
),
),
),
);
}
}