fix: center the texts for no users found with search and type first message

This commit is contained in:
Freek van de Ven 2024-06-18 07:51:26 +02:00 committed by Freek van de Ven
parent 9be096154f
commit 644615f026
8 changed files with 25 additions and 15 deletions

View file

@ -1,3 +1,7 @@
## 3.1.0
- Fix center the texts for no users found with search and type first message
## 3.0.1
- fix bug where you could make multiple groups quickly by routing back to the previous screen

View file

@ -4,7 +4,7 @@
name: flutter_chat
description: A new Flutter package project.
version: 3.0.1
version: 3.1.0
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
@ -18,13 +18,13 @@ dependencies:
go_router: ^14.2.1
flutter_chat_view:
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
version: ^3.0.1
version: ^3.1.0
flutter_chat_interface:
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
version: ^3.0.1
version: ^3.1.0
flutter_chat_local:
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
version: ^3.0.1
version: ^3.1.0
uuid: ^4.3.3
dev_dependencies:

View file

@ -22,7 +22,7 @@ dependencies:
uuid: ^4.0.0
flutter_chat_interface:
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
version: ^3.0.1
version: ^3.1.0
dev_dependencies:
flutter_iconica_analysis:

View file

@ -13,7 +13,7 @@ dependencies:
sdk: flutter
flutter_chat_interface:
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
version: ^3.0.1
version: ^3.1.0
dev_dependencies:
flutter_test:

View file

@ -223,11 +223,14 @@ Widget _createNoUsersPlaceholder(
var theme = Theme.of(context);
return Padding(
padding: const EdgeInsets.symmetric(vertical: 20),
child: Align(
alignment: Alignment.topCenter,
child: Text(
translations.noUsersFound,
textAlign: TextAlign.center,
style: theme.textTheme.bodySmall,
),
),
);
}

View file

@ -190,10 +190,13 @@ class _NewChatScreenState extends State<NewChatScreen> {
if (_textFieldFocusNode.hasFocus && query.isEmpty) {
return Padding(
padding: const EdgeInsets.only(top: 20.0),
child: Align(
alignment: Alignment.topCenter,
child: Text(
widget.translations.startTyping,
style: theme.textTheme.bodySmall,
),
),
);
}

View file

@ -18,7 +18,7 @@ dependencies:
intl: ^0.19.0
flutter_chat_interface:
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
version: ^3.0.1
version: ^3.1.0
cached_network_image: ^3.2.2
flutter_image_picker:
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub

View file

@ -3,4 +3,4 @@ name: flutter_chat_workspace
environment:
sdk: ">=3.1.0 <4.0.0"
dev_dependencies:
melos: ^3.0.1
melos: ^6.1.0