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 { 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;

View file

@ -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> {
), ),
), ),
), ),
),
); );
} }
} }

View file

@ -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
], ],
), ),
), ),
],
),
), ),
); );
} }

View file

@ -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> {
], ],
), ),
), ),
),
); );
} }
} }