mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
feat(mobile): add labels to app bar buttons (#7865)
This commit is contained in:
parent
7489db9481
commit
727a8cd715
3 changed files with 8 additions and 2 deletions
|
@ -194,9 +194,10 @@ class LibraryPage extends HookConsumerWidget {
|
||||||
? InkWell(
|
? InkWell(
|
||||||
onTap: () => context.pushRoute(const TrashRoute()),
|
onTap: () => context.pushRoute(const TrashRoute()),
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||||
child: const Icon(
|
child: Icon(
|
||||||
Icons.delete_rounded,
|
Icons.delete_rounded,
|
||||||
size: 25,
|
size: 25,
|
||||||
|
semanticLabel: 'profile_drawer_trash'.tr(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: null;
|
: null;
|
||||||
|
|
|
@ -212,9 +212,10 @@ class SharingPage extends HookConsumerWidget {
|
||||||
return InkWell(
|
return InkWell(
|
||||||
onTap: () => context.pushRoute(const PartnerRoute()),
|
onTap: () => context.pushRoute(const PartnerRoute()),
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||||
child: const Icon(
|
child: Icon(
|
||||||
Icons.swap_horizontal_circle_rounded,
|
Icons.swap_horizontal_circle_rounded,
|
||||||
size: 25,
|
size: 25,
|
||||||
|
semanticLabel: 'partner_page_title'.tr(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import 'package:auto_route/auto_route.dart';
|
import 'package:auto_route/auto_route.dart';
|
||||||
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
||||||
|
@ -80,6 +81,7 @@ class ImmichAppBar extends ConsumerWidget implements PreferredSizeWidget {
|
||||||
strokeWidth: 2,
|
strokeWidth: 2,
|
||||||
strokeCap: StrokeCap.round,
|
strokeCap: StrokeCap.round,
|
||||||
valueColor: AlwaysStoppedAnimation<Color>(iconColor),
|
valueColor: AlwaysStoppedAnimation<Color>(iconColor),
|
||||||
|
semanticsLabel: 'backup_controller_page_backup'.tr(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else if (backupState.backupProgress !=
|
} else if (backupState.backupProgress !=
|
||||||
|
@ -89,6 +91,7 @@ class ImmichAppBar extends ConsumerWidget implements PreferredSizeWidget {
|
||||||
Icons.check_outlined,
|
Icons.check_outlined,
|
||||||
size: 9,
|
size: 9,
|
||||||
color: iconColor,
|
color: iconColor,
|
||||||
|
semanticLabel: 'backup_controller_page_backup'.tr(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -98,6 +101,7 @@ class ImmichAppBar extends ConsumerWidget implements PreferredSizeWidget {
|
||||||
Icons.cloud_off_rounded,
|
Icons.cloud_off_rounded,
|
||||||
size: 9,
|
size: 9,
|
||||||
color: iconColor,
|
color: iconColor,
|
||||||
|
semanticLabel: 'backup_controller_page_backup'.tr(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue