Fix minor bugs

This commit is contained in:
problematicconsumer
2023-09-30 11:15:32 +03:30
parent eb4db44c06
commit 06c23784ed
4 changed files with 60 additions and 23 deletions

View File

@@ -71,17 +71,14 @@ class ProfileTile extends HookConsumerWidget {
width: 1,
color: effectiveOutlineColor,
),
Flexible(
Expanded(
child: Semantics(
button: true,
sortKey: isMain ? const OrdinalSortKey(0) : null,
focused: isMain,
liveRegion: isMain,
namesRoute: isMain,
label: isMain
? t.profile.activeProfileBtnSemanticLabel
: t.profile
.nonActiveProfileBtnSemanticLabel(name: profile.name),
label: isMain ? t.profile.activeProfileBtnSemanticLabel : null,
child: InkWell(
onTap: () {
if (isMain) {
@@ -133,10 +130,13 @@ class ProfileTile extends HookConsumerWidget {
else
Text(
profile.name,
semanticsLabel:
t.profile.nonActiveProfileNameSemanticLabel(
name: profile.name,
),
semanticsLabel: profile.active
? t.profile.activeProfileNameSemanticLabel(
name: profile.name,
)
: t.profile.nonActiveProfileBtnSemanticLabel(
name: profile.name,
),
style: theme.textTheme.titleMedium,
),
if (subInfo != null) ...[
@@ -171,7 +171,6 @@ class ProfileActionButton extends HookConsumerWidget {
final updateProfileMutation = useMutation(
initialOnFailure: (err) {
// CustomToast.error(t.printError(err)).show(context);
CustomAlertDialog.fromErr(t.presentError(err)).show(context);
},
initialOnSuccess: () =>