mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
feat: rename label to semanticsLabel and correct misspelling
This commit is contained in:
parent
6c25ce7d67
commit
cb8de25e08
11 changed files with 27 additions and 27 deletions
|
@ -140,7 +140,7 @@ class _NewWalletRecoveryPhraseViewState
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
label: "Copy Button. Copies The Recovery Phrase To Clipboard.",
|
semanticsLabel: "Copy Button. Copies The Recovery Phrase To Clipboard.",
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.background,
|
.background,
|
||||||
|
|
|
@ -87,7 +87,7 @@ class _NewWalletRecoveryPhraseWarningViewState
|
||||||
right: 10,
|
right: 10,
|
||||||
),
|
),
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
label: "Question Button. Openes A Dialog For Recovery Phrase Explanation.",
|
semanticsLabel: "Question Button. Opens A Dialog For Recovery Phrase Explanation.",
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.circleQuestion,
|
Assets.svg.circleQuestion,
|
||||||
width: 20,
|
width: 20,
|
||||||
|
|
|
@ -636,7 +636,7 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
label: "View QR Code Button. Opens Camera To Scan QR Code For Restoring Wallet.",
|
semanticsLabel: "View QR Code Button. Opens Camera To Scan QR Code For Restoring Wallet.",
|
||||||
key: const Key("restoreWalletViewQrCodeButton"),
|
key: const Key("restoreWalletViewQrCodeButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
|
@ -663,7 +663,7 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
label: "Paste Button. Pastes From Clipboard For Restoring Wallet.",
|
semanticsLabel: "Paste Button. Pastes From Clipboard For Restoring Wallet.",
|
||||||
key: const Key("restoreWalletPasteButton"),
|
key: const Key("restoreWalletPasteButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
|
|
|
@ -191,7 +191,7 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
label: "Notifications Button. Takes To Notifications Page.",
|
semanticsLabel: "Notifications Button. Takes To Notifications Page.",
|
||||||
key: const Key("walletsViewAlertsButton"),
|
key: const Key("walletsViewAlertsButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
|
@ -255,7 +255,7 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
label: "Settings Button. Takes To Settings Page.",
|
semanticsLabel: "Settings Button. Takes To Settings Page.",
|
||||||
key: const Key("walletsViewSettingsButton"),
|
key: const Key("walletsViewSettingsButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
|
|
|
@ -248,7 +248,7 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
|
||||||
),
|
),
|
||||||
CustomPinPut(
|
CustomPinPut(
|
||||||
customKey: CustomKey(
|
customKey: CustomKey(
|
||||||
customKeyLabel: Platform.isIOS
|
semanticsLabel: Platform.isIOS
|
||||||
? "Face ID Button. Checks Face ID."
|
? "Face ID Button. Checks Face ID."
|
||||||
: "Fingerprint Button. Checks Fingerprint."
|
: "Fingerprint Button. Checks Fingerprint."
|
||||||
,
|
,
|
||||||
|
|
|
@ -143,7 +143,7 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
label: "Adress List Pop-up Button. Opens A Pop-up For Adress List Button.",
|
semanticsLabel: "Address List Pop-up Button. Opens A Pop-up For Adress List Button.",
|
||||||
key: const Key("walletNetworkSettingsAddNewNodeViewButton"),
|
key: const Key("walletNetworkSettingsAddNewNodeViewButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
|
|
|
@ -981,7 +981,7 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
children: [
|
children: [
|
||||||
_addressToggleFlag
|
_addressToggleFlag
|
||||||
? TextFieldIconButton(
|
? TextFieldIconButton(
|
||||||
label: "Clear Button. Clears The Address Field Input.",
|
semanticsLabel: "Clear Button. Clears The Address Field Input.",
|
||||||
key: const Key(
|
key: const Key(
|
||||||
"sendViewClearAddressFieldButtonKey"),
|
"sendViewClearAddressFieldButtonKey"),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
@ -998,7 +998,7 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
child: const XIcon(),
|
child: const XIcon(),
|
||||||
)
|
)
|
||||||
: TextFieldIconButton(
|
: TextFieldIconButton(
|
||||||
label: "Paste Button. Pastes From Clipboard To Address Field Input.",
|
semanticsLabel: "Paste Button. Pastes From Clipboard To Address Field Input.",
|
||||||
key: const Key(
|
key: const Key(
|
||||||
"sendViewPasteAddressFieldButtonKey"),
|
"sendViewPasteAddressFieldButtonKey"),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
|
@ -1048,7 +1048,7 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
),
|
),
|
||||||
if (sendToController.text.isEmpty)
|
if (sendToController.text.isEmpty)
|
||||||
TextFieldIconButton(
|
TextFieldIconButton(
|
||||||
label: "Address Book Button. Opens Address Book For Address Field.",
|
semanticsLabel: "Address Book Button. Opens Address Book For Address Field.",
|
||||||
key: const Key(
|
key: const Key(
|
||||||
"sendViewAddressBookButtonKey"),
|
"sendViewAddressBookButtonKey"),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
@ -1061,7 +1061,7 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
),
|
),
|
||||||
if (sendToController.text.isEmpty)
|
if (sendToController.text.isEmpty)
|
||||||
TextFieldIconButton(
|
TextFieldIconButton(
|
||||||
label: "Scan QR Button. Opens Camera For Scanning QR Code.",
|
semanticsLabel: "Scan QR Button. Opens Camera For Scanning QR Code.",
|
||||||
key: const Key(
|
key: const Key(
|
||||||
"sendViewScanQrButtonKey"),
|
"sendViewScanQrButtonKey"),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
|
|
|
@ -473,7 +473,7 @@ class _WalletViewState extends ConsumerState<WalletView> {
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
label: "Network Button. Takes To Network Status Page.",
|
semanticsLabel: "Network Button. Takes To Network Status Page.",
|
||||||
key: const Key("walletViewRadioButton"),
|
key: const Key("walletViewRadioButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
|
@ -503,7 +503,7 @@ class _WalletViewState extends ConsumerState<WalletView> {
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
label: "Notifications Button. Takes To Notifications Page.",
|
semanticsLabel: "Notifications Button. Takes To Notifications Page.",
|
||||||
key: const Key("walletViewAlertsButton"),
|
key: const Key("walletViewAlertsButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
|
@ -571,7 +571,7 @@ class _WalletViewState extends ConsumerState<WalletView> {
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
label: "Settings Button. Takes To Wallet Settings Page.",
|
semanticsLabel: "Settings Button. Takes To Wallet Settings Page.",
|
||||||
key: const Key("walletViewSettingsButton"),
|
key: const Key("walletViewSettingsButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
|
|
|
@ -13,7 +13,7 @@ class AppBarIconButton extends StatelessWidget {
|
||||||
// this.circularBorderRadius = 10.0,
|
// this.circularBorderRadius = 10.0,
|
||||||
this.size = 36.0,
|
this.size = 36.0,
|
||||||
this.shadows = const [],
|
this.shadows = const [],
|
||||||
this.label = "Button",
|
this.semanticsLabel = "Button",
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
final Widget icon;
|
final Widget icon;
|
||||||
|
@ -22,7 +22,7 @@ class AppBarIconButton extends StatelessWidget {
|
||||||
// final double circularBorderRadius;
|
// final double circularBorderRadius;
|
||||||
final double size;
|
final double size;
|
||||||
final List<BoxShadow> shadows;
|
final List<BoxShadow> shadows;
|
||||||
final String label;
|
final String semanticsLabel;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -36,7 +36,7 @@ class AppBarIconButton extends StatelessWidget {
|
||||||
),
|
),
|
||||||
child: Semantics(
|
child: Semantics(
|
||||||
excludeSemantics: true,
|
excludeSemantics: true,
|
||||||
label: label,
|
label: semanticsLabel,
|
||||||
child: MaterialButton(
|
child: MaterialButton(
|
||||||
splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
|
@ -59,14 +59,14 @@ class AppBarBackButton extends StatelessWidget {
|
||||||
this.isCompact = false,
|
this.isCompact = false,
|
||||||
this.size,
|
this.size,
|
||||||
this.iconSize,
|
this.iconSize,
|
||||||
this.label = "Back Button. Takes Back To Previous Page.",
|
this.semanticsLabel = "Back Button. Takes Back To Previous Page.",
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
final VoidCallback? onPressed;
|
final VoidCallback? onPressed;
|
||||||
final bool isCompact;
|
final bool isCompact;
|
||||||
final double? size;
|
final double? size;
|
||||||
final double? iconSize;
|
final double? iconSize;
|
||||||
final String label;
|
final String semanticsLabel;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -79,7 +79,7 @@ class AppBarBackButton extends StatelessWidget {
|
||||||
)
|
)
|
||||||
: const EdgeInsets.all(10),
|
: const EdgeInsets.all(10),
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
label: label,
|
semanticsLabel: semanticsLabel,
|
||||||
size: size ??
|
size: size ??
|
||||||
(isDesktop
|
(isDesktop
|
||||||
? isCompact
|
? isCompact
|
||||||
|
|
|
@ -202,12 +202,12 @@ class CustomKey extends StatelessWidget {
|
||||||
Key? key,
|
Key? key,
|
||||||
required this.onPressed,
|
required this.onPressed,
|
||||||
this.iconAssetName,
|
this.iconAssetName,
|
||||||
this.customKeyLabel = "Button",
|
this.semanticsLabel = "Button",
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
final VoidCallback onPressed;
|
final VoidCallback onPressed;
|
||||||
final String? iconAssetName;
|
final String? iconAssetName;
|
||||||
final String customKeyLabel;
|
final String semanticsLabel;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -220,7 +220,7 @@ class CustomKey extends StatelessWidget {
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
),
|
),
|
||||||
child: Semantics(
|
child: Semantics(
|
||||||
label: customKeyLabel,
|
label: semanticsLabel,
|
||||||
excludeSemantics: true,
|
excludeSemantics: true,
|
||||||
child: MaterialButton(
|
child: MaterialButton(
|
||||||
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
|
|
|
@ -8,7 +8,7 @@ class TextFieldIconButton extends StatefulWidget {
|
||||||
this.onTap,
|
this.onTap,
|
||||||
required this.child,
|
required this.child,
|
||||||
this.color = Colors.transparent,
|
this.color = Colors.transparent,
|
||||||
this.label = "Button",
|
this.semanticsLabel = "Button",
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
final double width;
|
final double width;
|
||||||
|
@ -16,7 +16,7 @@ class TextFieldIconButton extends StatefulWidget {
|
||||||
final VoidCallback? onTap;
|
final VoidCallback? onTap;
|
||||||
final Widget child;
|
final Widget child;
|
||||||
final Color color;
|
final Color color;
|
||||||
final String label;
|
final String semanticsLabel;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<TextFieldIconButton> createState() => _TextFieldIconButtonState();
|
State<TextFieldIconButton> createState() => _TextFieldIconButtonState();
|
||||||
|
@ -39,7 +39,7 @@ class _TextFieldIconButtonState extends State<TextFieldIconButton> {
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(100),
|
borderRadius: BorderRadius.circular(100),
|
||||||
child: Semantics(
|
child: Semantics(
|
||||||
label: widget.label,
|
label: widget.semanticsLabel,
|
||||||
excludeSemantics: true,
|
excludeSemantics: true,
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
constraints: BoxConstraints(
|
constraints: BoxConstraints(
|
||||||
|
|
Loading…
Reference in a new issue