mirror of
https://github.com/kuhyx/wake-alarm.git
synced 2026-11-22 16:02:17 +01:00
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint,free-days-interop) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / free-days-interop (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Flutter 3.50 deprecates package:flutter/material.dart, so the app moves to material_ui 1.11.0 together with sync_settings_ui 0.8.0 and github_device_auth 0.5.0 (crdt_sync 0.13.1 rides along). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
886 B
Dart
35 lines
886 B
Dart
/// A wrapper that provides a spoken label for accessibility without any
|
|
/// visible text (no Tooltip).
|
|
///
|
|
/// Use for icon-only controls whose wording must remain only for TalkBack.
|
|
library;
|
|
|
|
import 'package:material_ui/material_ui.dart';
|
|
|
|
/// A wrapper that provides a spoken label for accessibility without any
|
|
/// visible text (no Tooltip).
|
|
///
|
|
/// Use for icon-only controls whose wording must remain only for TalkBack.
|
|
class SpokenLabel extends StatelessWidget {
|
|
/// Creates a spoken label wrapper.
|
|
const SpokenLabel({
|
|
required this.semanticLabel,
|
|
required this.child,
|
|
super.key,
|
|
});
|
|
|
|
/// The accessibility label.
|
|
final String semanticLabel;
|
|
|
|
/// The child widget to wrap.
|
|
final Widget child;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Semantics(
|
|
label: semanticLabel,
|
|
child: ExcludeSemantics(child: child),
|
|
);
|
|
}
|
|
}
|