mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-30 14:15:52 +00:00
refactor button style getter names
This commit is contained in:
parent
9c0992ffbf
commit
028b261dee
64 changed files with 126 additions and 128 deletions
|
@ -38,10 +38,10 @@ class AddWalletNextButton extends ConsumerWidget {
|
||||||
style: enabled
|
style: enabled
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Next",
|
"Next",
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
|
|
|
@ -30,7 +30,7 @@ class CreateWalletButtonGroup extends StatelessWidget {
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pushNamed(
|
Navigator.of(context).pushNamed(
|
||||||
NameYourWalletView.routeName,
|
NameYourWalletView.routeName,
|
||||||
|
@ -59,7 +59,7 @@ class CreateWalletButtonGroup extends StatelessWidget {
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pushNamed(
|
Navigator.of(context).pushNamed(
|
||||||
NameYourWalletView.routeName,
|
NameYourWalletView.routeName,
|
||||||
|
|
|
@ -364,10 +364,10 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
|
||||||
style: _nextEnabled
|
style: _nextEnabled
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Next",
|
"Next",
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
|
|
|
@ -298,7 +298,7 @@ class _NewWalletRecoveryPhraseViewState
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"I saved my recovery phrase",
|
"I saved my recovery phrase",
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
|
|
|
@ -512,10 +512,10 @@ class _NewWalletRecoveryPhraseWarningViewState
|
||||||
style: ref.read(checkBoxStateProvider.state).state
|
style: ref.read(checkBoxStateProvider.state).state
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"View recovery phrase",
|
"View recovery phrase",
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
|
|
|
@ -23,10 +23,10 @@ class RestoreOptionsNextButton extends StatelessWidget {
|
||||||
style: onPressed != null
|
style: onPressed != null
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Next",
|
"Next",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -47,7 +47,7 @@ class _RestoreFailedDialogState extends ConsumerState<RestoreFailedDialog> {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
|
|
@ -80,7 +80,7 @@ class RestoreSucceededDialog extends StatelessWidget {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
|
|
@ -139,7 +139,7 @@ class _RestoringDialogState extends State<RestoringDialog>
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
|
|
@ -331,10 +331,10 @@ class _VerifyRecoveryPhraseViewState
|
||||||
style: selectedWord.isNotEmpty
|
style: selectedWord.isNotEmpty
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
child: isDesktop
|
child: isDesktop
|
||||||
? Text(
|
? Text(
|
||||||
"Verify",
|
"Verify",
|
||||||
|
|
|
@ -177,7 +177,7 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
@ -189,7 +189,7 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Delete",
|
"Delete",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
@ -273,7 +273,7 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context)!
|
.getSecondaryEnabledButtonStyle(context)!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
minimumSize: MaterialStateProperty.all<Size>(
|
minimumSize: MaterialStateProperty.all<Size>(
|
||||||
const Size(46, 32)),
|
const Size(46, 32)),
|
||||||
|
|
|
@ -148,7 +148,7 @@ class ContactPopUp extends ConsumerWidget {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonStyle(
|
||||||
context)!
|
context)!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
minimumSize:
|
minimumSize:
|
||||||
|
|
|
@ -135,7 +135,7 @@ class _ConfirmChangeNowSendViewState
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
|
|
@ -136,7 +136,7 @@ class _EditNoteViewState extends ConsumerState<EditTradeNoteView> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Save",
|
"Save",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -144,7 +144,6 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
|
||||||
await Future<void>.delayed(const Duration(milliseconds: 300));
|
await Future<void>.delayed(const Duration(milliseconds: 300));
|
||||||
|
|
||||||
Navigator.of(context, rootNavigator: true).pop();
|
Navigator.of(context, rootNavigator: true).pop();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
final toTicker = ref.read(exchangeFormStateProvider).toTicker ?? "";
|
final toTicker = ref.read(exchangeFormStateProvider).toTicker ?? "";
|
||||||
final fromTicker = ref.read(exchangeFormStateProvider).fromTicker ?? "";
|
final fromTicker = ref.read(exchangeFormStateProvider).fromTicker ?? "";
|
||||||
|
@ -1017,7 +1016,7 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
@ -1030,7 +1029,7 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Attempt",
|
"Attempt",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -91,7 +91,7 @@ class _ExchangeLoadingOverlayViewState
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"OK",
|
"OK",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
|
|
@ -188,7 +188,7 @@ class _Step1ViewState extends State<Step1View> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Next",
|
"Next",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -698,7 +698,7 @@ class _Step2ViewState extends ConsumerState<Step2View> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Back",
|
"Back",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
|
|
@ -208,7 +208,7 @@ class _Step3ViewState extends ConsumerState<Step3View> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Back",
|
"Back",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
@ -322,7 +322,7 @@ class _Step3ViewState extends ConsumerState<Step3View> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Next",
|
"Next",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -426,7 +426,7 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
Navigator.of(context).pop(),
|
Navigator.of(context).pop(),
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonStyle(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
|
@ -451,7 +451,7 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Show QR Code",
|
"Show QR Code",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
@ -578,7 +578,7 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<
|
.extension<
|
||||||
StackColors>()!
|
StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonStyle(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
|
@ -628,7 +628,7 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
buttonTitle,
|
buttonTitle,
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
|
|
@ -338,7 +338,7 @@ class _SendFromCardState extends ConsumerState<SendFromCard> {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
|
|
@ -713,7 +713,7 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonStyle(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
|
|
|
@ -45,14 +45,14 @@ class _HomeViewButtonBarState extends ConsumerState<HomeViewButtonBar> {
|
||||||
style: selectedIndex == 0
|
style: selectedIndex == 0
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)!
|
.getPrimaryEnabledButtonStyle(context)!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
minimumSize:
|
minimumSize:
|
||||||
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
||||||
)
|
)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context)!
|
.getSecondaryEnabledButtonStyle(context)!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
minimumSize:
|
minimumSize:
|
||||||
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
||||||
|
@ -86,14 +86,14 @@ class _HomeViewButtonBarState extends ConsumerState<HomeViewButtonBar> {
|
||||||
style: selectedIndex == 1
|
style: selectedIndex == 1
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)!
|
.getPrimaryEnabledButtonStyle(context)!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
minimumSize:
|
minimumSize:
|
||||||
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
||||||
)
|
)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context)!
|
.getSecondaryEnabledButtonStyle(context)!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
minimumSize:
|
minimumSize:
|
||||||
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
||||||
|
|
|
@ -259,7 +259,7 @@ class GetStartedButton extends StatelessWidget {
|
||||||
? TextButton(
|
? TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Prefs.instance.externalCalls = true;
|
Prefs.instance.externalCalls = true;
|
||||||
Navigator.of(context).pushNamed(
|
Navigator.of(context).pushNamed(
|
||||||
|
@ -278,7 +278,7 @@ class GetStartedButton extends StatelessWidget {
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pushNamed(
|
Navigator.of(context).pushNamed(
|
||||||
StackPrivacyCalls.routeName,
|
StackPrivacyCalls.routeName,
|
||||||
|
|
|
@ -225,7 +225,7 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
|
|
@ -206,7 +206,7 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
|
||||||
onPressed: generateNewAddress,
|
onPressed: generateNewAddress,
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Generate new address",
|
"Generate new address",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
|
|
@ -196,7 +196,7 @@ class _ConfirmTransactionViewState
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
|
|
@ -1608,7 +1608,7 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonStyle(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
|
@ -1628,7 +1628,7 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(
|
.getPrimaryEnabledButtonStyle(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Yes",
|
"Yes",
|
||||||
|
@ -1738,7 +1738,7 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonStyle(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
|
@ -1767,10 +1767,10 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
.state
|
.state
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Preview",
|
"Preview",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -107,7 +107,7 @@ class _RestoringDialogState extends State<BuildingTransactionDialog>
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
|
|
@ -144,7 +144,7 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
@ -156,7 +156,7 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Delete logs",
|
"Delete logs",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stackwallet/pages/intro_view.dart';
|
import 'package:stackwallet/pages/intro_view.dart';
|
||||||
|
import 'package:stackwallet/utilities/delete_everything.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_scaffold.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_scaffold.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/primary_button.dart';
|
import 'package:stackwallet/widgets/desktop/primary_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
import 'package:stackwallet/utilities/delete_everything.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
|
||||||
|
|
||||||
class DeleteAccountView extends StatefulWidget {
|
class DeleteAccountView extends StatefulWidget {
|
||||||
const DeleteAccountView({Key? key}) : super(key: key);
|
const DeleteAccountView({Key? key}) : super(key: key);
|
||||||
|
@ -35,7 +34,7 @@ class _DeleteAccountViewState extends State<DeleteAccountView> {
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
|
@ -50,7 +49,7 @@ class _DeleteAccountViewState extends State<DeleteAccountView> {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
await deleteEverything();
|
await deleteEverything();
|
||||||
|
|
||||||
|
|
|
@ -284,7 +284,7 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Save",
|
"Save",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
@ -603,10 +603,10 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
|
||||||
style: saveEnabled
|
style: saveEnabled
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
onPressed: saveEnabled ? attemptSave : null,
|
onPressed: saveEnabled ? attemptSave : null,
|
||||||
child: Text(
|
child: Text(
|
||||||
"Save",
|
"Save",
|
||||||
|
|
|
@ -85,7 +85,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Back",
|
"Back",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
@ -100,7 +100,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Continue",
|
"Continue",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
@ -142,7 +142,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Back",
|
"Back",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
@ -157,7 +157,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Disable",
|
"Disable",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -483,10 +483,10 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
||||||
style: shouldEnableCreate
|
style: shouldEnableCreate
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
onPressed: !shouldEnableCreate
|
onPressed: !shouldEnableCreate
|
||||||
? null
|
? null
|
||||||
: () async {
|
: () async {
|
||||||
|
|
|
@ -67,7 +67,7 @@ class CreateBackupInfoView extends StatelessWidget {
|
||||||
TextButton(
|
TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context)
|
Navigator.of(context)
|
||||||
.pushNamed(CreateBackupView.routeName);
|
.pushNamed(CreateBackupView.routeName);
|
||||||
|
|
|
@ -454,10 +454,10 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
||||||
style: shouldEnableCreate
|
style: shouldEnableCreate
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
onPressed: !shouldEnableCreate
|
onPressed: !shouldEnableCreate
|
||||||
? null
|
? null
|
||||||
: () async {
|
: () async {
|
||||||
|
|
|
@ -27,7 +27,7 @@ class CancelStackRestoreDialog extends StatelessWidget {
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Back",
|
"Back",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
@ -39,7 +39,7 @@ class CancelStackRestoreDialog extends StatelessWidget {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Yes, cancel",
|
"Yes, cancel",
|
||||||
style: STextStyles.itemSubtitle12(context).copyWith(
|
style: STextStyles.itemSubtitle12(context).copyWith(
|
||||||
|
|
|
@ -781,10 +781,10 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
||||||
style: shouldEnableCreate
|
style: shouldEnableCreate
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
onPressed: !shouldEnableCreate ? null : onSavePressed,
|
onPressed: !shouldEnableCreate ? null : onSavePressed,
|
||||||
child: Text(
|
child: Text(
|
||||||
"Save",
|
"Save",
|
||||||
|
|
|
@ -158,10 +158,10 @@ class _RestoreFromEncryptedStringViewState
|
||||||
style: passwordController.text.isEmpty
|
style: passwordController.text.isEmpty
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
onPressed: passwordController.text.isEmpty
|
onPressed: passwordController.text.isEmpty
|
||||||
? null
|
? null
|
||||||
: () async {
|
: () async {
|
||||||
|
|
|
@ -280,10 +280,10 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
||||||
fileLocationController.text.isEmpty
|
fileLocationController.text.isEmpty
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context)
|
.getPrimaryDisabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: passwordController.text.isEmpty ||
|
onPressed: passwordController.text.isEmpty ||
|
||||||
fileLocationController.text.isEmpty
|
fileLocationController.text.isEmpty
|
||||||
? null
|
? null
|
||||||
|
|
|
@ -669,7 +669,7 @@ class _StackRestoreProgressViewState
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
_success ? "OK" : "Cancel restore process",
|
_success ? "OK" : "Cancel restore process",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
|
|
@ -140,7 +140,7 @@ class WalletBackupView extends ConsumerWidget {
|
||||||
TextButton(
|
TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
String data = AddressUtils.encodeQRSeedData(mnemonic);
|
String data = AddressUtils.encodeQRSeedData(mnemonic);
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ class WalletBackupView extends ConsumerWidget {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
|
|
@ -96,7 +96,7 @@ class ConfirmFullRescanDialog extends StatelessWidget {
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
@ -108,7 +108,7 @@ class ConfirmFullRescanDialog extends StatelessWidget {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Rescan",
|
"Rescan",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -126,7 +126,7 @@ class _WalletNetworkSettingsViewState
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
@ -156,7 +156,7 @@ class _WalletNetworkSettingsViewState
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
|
|
@ -306,7 +306,7 @@ class _WalletSettingsViewState extends State<WalletSettingsView> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Log out",
|
"Log out",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
|
|
@ -156,7 +156,7 @@ class _DeleteWalletRecoveryPhraseViewState
|
||||||
TextButton(
|
TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
showDialog<dynamic>(
|
showDialog<dynamic>(
|
||||||
barrierDismissible: true,
|
barrierDismissible: true,
|
||||||
|
@ -166,7 +166,7 @@ class _DeleteWalletRecoveryPhraseViewState
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
|
@ -181,7 +181,7 @@ class _DeleteWalletRecoveryPhraseViewState
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final walletId = _manager.walletId;
|
final walletId = _manager.walletId;
|
||||||
final walletsInstance =
|
final walletsInstance =
|
||||||
|
|
|
@ -69,7 +69,7 @@ class DeleteWalletWarningView extends ConsumerWidget {
|
||||||
TextButton(
|
TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
|
@ -87,7 +87,7 @@ class DeleteWalletWarningView extends ConsumerWidget {
|
||||||
TextButton(
|
TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final manager = ref
|
final manager = ref
|
||||||
.read(walletsChangeNotifierProvider)
|
.read(walletsChangeNotifierProvider)
|
||||||
|
|
|
@ -114,7 +114,7 @@ class _RenameWalletViewState extends ConsumerState<RenameWalletView> {
|
||||||
TextButton(
|
TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final newName = _controller.text;
|
final newName = _controller.text;
|
||||||
final success = await ref
|
final success = await ref
|
||||||
|
|
|
@ -105,7 +105,7 @@ class WalletSettingsWalletSettingsView extends ConsumerWidget {
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
|
@ -120,7 +120,7 @@ class WalletSettingsWalletSettingsView extends ConsumerWidget {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
|
|
|
@ -204,7 +204,7 @@ class _EditNoteViewState extends ConsumerState<EditNoteView> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Save",
|
"Save",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -202,7 +202,7 @@ class _TransactionDetailsViewState
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop(true);
|
Navigator.of(context).pop(true);
|
||||||
},
|
},
|
||||||
|
|
|
@ -579,7 +579,7 @@ class _WalletViewState extends ConsumerState<WalletView> {
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
await showDialog<void>(
|
await showDialog<void>(
|
||||||
context: context,
|
context: context,
|
||||||
|
@ -609,7 +609,7 @@ class _WalletViewState extends ConsumerState<WalletView> {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(
|
.getPrimaryEnabledButtonStyle(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Continue",
|
"Continue",
|
||||||
|
|
|
@ -94,7 +94,7 @@ class AddWalletButton extends StatelessWidget {
|
||||||
return TextButton(
|
return TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (isDesktop) {
|
if (isDesktop) {
|
||||||
Navigator.of(
|
Navigator.of(
|
||||||
|
|
|
@ -262,10 +262,10 @@ class _DesktopMenuItemState<T> extends ConsumerState<DesktopMenuItem<T>>
|
||||||
style: value == group
|
style: value == group
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getDesktopMenuButtonColorSelected(context)
|
.getDesktopMenuButtonStyleSelected(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getDesktopMenuButtonColor(context),
|
.getDesktopMenuButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
onChanged(value);
|
onChanged(value);
|
||||||
},
|
},
|
||||||
|
|
|
@ -22,7 +22,7 @@ class ExitToMyStackButton extends StatelessWidget {
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSmallSecondaryEnabledButtonColor(context),
|
.getSmallSecondaryEnabledButtonStyle(context),
|
||||||
onPressed: onPressed ??
|
onPressed: onPressed ??
|
||||||
() {
|
() {
|
||||||
Navigator.of(context).popUntil(
|
Navigator.of(context).popUntil(
|
||||||
|
|
|
@ -425,10 +425,10 @@ class _CreatePasswordViewState extends ConsumerState<CreatePasswordView> {
|
||||||
style: nextEnabled
|
style: nextEnabled
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
onPressed: nextEnabled ? onNextPressed : null,
|
onPressed: nextEnabled ? onNextPressed : null,
|
||||||
child: Text(
|
child: Text(
|
||||||
"Next",
|
"Next",
|
||||||
|
|
|
@ -159,7 +159,7 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Back",
|
"Back",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
|
@ -175,7 +175,7 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Disable",
|
"Disable",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -25,10 +25,10 @@ class SettingsMenuItem<T> extends StatelessWidget {
|
||||||
style: value == group
|
style: value == group
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getDesktopSettingsButtonColor(context)
|
.getDesktopSettingsButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getDesktopSettingsButtonColor(context),
|
.getDesktopSettingsButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
onChanged(value);
|
onChanged(value);
|
||||||
},
|
},
|
||||||
|
|
|
@ -1526,70 +1526,70 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ButtonStyle? getDeleteEnabledButtonColor(BuildContext context) =>
|
ButtonStyle? getDeleteEnabledButtonStyle(BuildContext context) =>
|
||||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
backgroundColor: MaterialStateProperty.all<Color>(
|
||||||
textFieldErrorBG,
|
textFieldErrorBG,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
ButtonStyle? getDeleteDisabledButtonColor(BuildContext context) =>
|
ButtonStyle? getDeleteDisabledButtonStyle(BuildContext context) =>
|
||||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
backgroundColor: MaterialStateProperty.all<Color>(
|
||||||
buttonBackSecondaryDisabled,
|
buttonBackSecondaryDisabled,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
ButtonStyle? getPrimaryEnabledButtonColor(BuildContext context) =>
|
ButtonStyle? getPrimaryEnabledButtonStyle(BuildContext context) =>
|
||||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
backgroundColor: MaterialStateProperty.all<Color>(
|
||||||
buttonBackPrimary,
|
buttonBackPrimary,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
ButtonStyle? getPrimaryDisabledButtonColor(BuildContext context) =>
|
ButtonStyle? getPrimaryDisabledButtonStyle(BuildContext context) =>
|
||||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
backgroundColor: MaterialStateProperty.all<Color>(
|
||||||
buttonBackPrimaryDisabled,
|
buttonBackPrimaryDisabled,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
ButtonStyle? getSecondaryEnabledButtonColor(BuildContext context) =>
|
ButtonStyle? getSecondaryEnabledButtonStyle(BuildContext context) =>
|
||||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
backgroundColor: MaterialStateProperty.all<Color>(
|
||||||
buttonBackSecondary,
|
buttonBackSecondary,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
ButtonStyle? getSecondaryDisabledButtonColor(BuildContext context) =>
|
ButtonStyle? getSecondaryDisabledButtonStyle(BuildContext context) =>
|
||||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
backgroundColor: MaterialStateProperty.all<Color>(
|
||||||
buttonBackSecondaryDisabled,
|
buttonBackSecondaryDisabled,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
ButtonStyle? getSmallSecondaryEnabledButtonColor(BuildContext context) =>
|
ButtonStyle? getSmallSecondaryEnabledButtonStyle(BuildContext context) =>
|
||||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
backgroundColor: MaterialStateProperty.all<Color>(
|
||||||
textFieldDefaultBG,
|
textFieldDefaultBG,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
ButtonStyle? getDesktopMenuButtonColor(BuildContext context) =>
|
ButtonStyle? getDesktopMenuButtonStyle(BuildContext context) =>
|
||||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
backgroundColor: MaterialStateProperty.all<Color>(
|
||||||
popupBG,
|
popupBG,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
ButtonStyle? getDesktopMenuButtonColorSelected(BuildContext context) =>
|
ButtonStyle? getDesktopMenuButtonStyleSelected(BuildContext context) =>
|
||||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
backgroundColor: MaterialStateProperty.all<Color>(
|
||||||
textFieldDefaultBG,
|
textFieldDefaultBG,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
ButtonStyle? getDesktopSettingsButtonColor(BuildContext context) =>
|
ButtonStyle? getDesktopSettingsButtonStyle(BuildContext context) =>
|
||||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
backgroundColor: MaterialStateProperty.all<Color>(
|
||||||
background,
|
background,
|
||||||
|
|
|
@ -64,10 +64,10 @@ class DeleteButton extends StatelessWidget {
|
||||||
style: enabled
|
style: enabled
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getDeleteEnabledButtonColor(context)
|
.getDeleteEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getDeleteDisabledButtonColor(context),
|
.getDeleteDisabledButtonStyle(context),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
|
|
|
@ -136,10 +136,10 @@ class PrimaryButton extends StatelessWidget {
|
||||||
style: enabled
|
style: enabled
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonStyle(context),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
|
|
|
@ -139,10 +139,10 @@ class SecondaryButton extends StatelessWidget {
|
||||||
style: enabled
|
style: enabled
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context)
|
.getSecondaryEnabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryDisabledButtonColor(context),
|
.getSecondaryDisabledButtonStyle(context),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
|
|
|
@ -307,7 +307,7 @@ class NodeOptionsSheet extends ConsumerWidget {
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonStyle(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
Navigator.of(context).pushNamed(
|
Navigator.of(context).pushNamed(
|
||||||
|
@ -337,10 +337,10 @@ class NodeOptionsSheet extends ConsumerWidget {
|
||||||
style: status == "Connected"
|
style: status == "Connected"
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context)
|
.getPrimaryDisabledButtonStyle(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
onPressed: status == "Connected"
|
onPressed: status == "Connected"
|
||||||
? null
|
? null
|
||||||
: () async {
|
: () async {
|
||||||
|
|
|
@ -193,7 +193,7 @@ class StackOkDialog extends StatelessWidget {
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonStyle(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
Loading…
Reference in a new issue