1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-28 22:51:59 +00:00

fix(mobile): Fix asset selector title bar text (#9273)

Fix title bar text
This commit is contained in:
Dhrumil Shah 2024-05-07 23:24:30 -04:00 committed by GitHub
parent 3790d8fcbc
commit ae08abde24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 8 deletions

View file

@ -411,6 +411,7 @@
"share_add_photos": "Add photos",
"share_add_title": "Add a title",
"share_create_album": "Create album",
"share_assets_selected": "{} selected",
"shared_album_activities_input_disable": "Comment is disabled",
"shared_album_activities_input_hint": "Say something",
"shared_album_activity_remove_content": "Do you want to delete this activity?",

View file

@ -31,10 +31,6 @@ class AlbumAssetSelectionPage extends HookConsumerWidget {
final selected = useState<Set<Asset>>(existingAssets);
final selectionEnabledHook = useState(true);
String buildAssetCountText() {
return selected.value.length.toString();
}
Widget buildBody(RenderList renderList) {
return ImmichAssetGrid(
renderList: renderList,
@ -63,10 +59,10 @@ class AlbumAssetSelectionPage extends HookConsumerWidget {
'share_add_photos',
style: TextStyle(fontSize: 18),
).tr()
: Text(
buildAssetCountText(),
style: const TextStyle(fontSize: 18),
),
: const Text(
'share_assets_selected',
style: TextStyle(fontSize: 18),
).tr(args: [selected.value.length.toString()]),
centerTitle: false,
actions: [
if (selected.value.isNotEmpty || canDeselect)