develop-unfocusTextField #56

Merged
MineTec merged 4 commits from develop-unfocusTextField into develop 2024-04-02 14:55:36 +00:00
2 changed files with 29 additions and 31 deletions
Showing only changes of commit 339d402422 - Show all commits

View File

@ -108,38 +108,33 @@ class _ChatViewState extends State<ChatView> {
),
),
),
body: GestureDetector(
onTap: () {
FocusScope.of(context).requestFocus(FocusNode());
},
child: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: const AssetImage('assets/background/chat.png'),
scale: 1.5,
opacity: 1,
repeat: ImageRepeat.repeat,
invertColors: AppTheme.isDarkMode(context)
)
),
child: data.primaryLoading() ? const LoadingSpinner() : Column(
children: [
Expanded(
child: ListView(
reverse: true,
controller: _listController,
children: messages.reversed.toList(),
),
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
Pupsi marked this conversation as resolved Outdated

tabs bitte reverten

tabs bitte reverten
image: const AssetImage('assets/background/chat.png'),
scale: 1.5,
opacity: 1,
repeat: ImageRepeat.repeat,
invertColors: AppTheme.isDarkMode(context)
)
),
child: data.primaryLoading() ? const LoadingSpinner() : Column(
children: [
Expanded(
child: ListView(
reverse: true,
controller: _listController,
children: messages.reversed.toList(),
),
Container(
color: Theme.of(context).colorScheme.background,
child: TalkNavigator.isSecondaryVisible(context)
? ChatTextfield(widget.room.token)
: SafeArea(child: ChatTextfield(widget.room.token)
),
)
],
),
),
Container(
color: Theme.of(context).colorScheme.background,
child: TalkNavigator.isSecondaryVisible(context)
? ChatTextfield(widget.room.token)
: SafeArea(child: ChatTextfield(widget.room.token)
),
)
],
),
),
);

View File

@ -156,6 +156,9 @@ class _ChatTextfieldState extends State<ChatTextfield> {
}
setDraft(text);
},
onTapOutside: (PointerDownEvent event) {
FocusScope.of(context).requestFocus(FocusNode());
Pupsi marked this conversation as resolved Outdated

.

.
},
),
),
const SizedBox(width: 15),