mirror of
https://github.com/immich-app/immich.git
synced 2025-12-30 01:11:52 +03:00
fix(mobile): Fix asset selector title bar text (#9273)
Fix title bar text
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user