Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/notifications/notification_card_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class NotificationCardLayout extends StatelessWidget {
),
if (read)
Positioned.fill(
child: RoundedContainer(color: colors.background.withOpacity(0.5)),
child: RoundedContainer(color: colors.background.withValues(alpha: 0.5)),
),
],
);
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/buy_view/buy_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ class _BuyFormState extends ConsumerState<BuyForm> {
? Theme.of(context)
.extension<StackColors>()!
.currencyListItemBG
.withOpacity(_hovering1 ? 0.3 : 0)
.withValues(alpha: _hovering1 ? 0.3 : 0)
: Theme.of(
context,
).extension<StackColors>()!.textFieldDefaultBG,
Expand Down Expand Up @@ -906,7 +906,7 @@ class _BuyFormState extends ConsumerState<BuyForm> {
? Theme.of(context)
.extension<StackColors>()!
.currencyListItemBG
.withOpacity(_hovering2 ? 0.3 : 0)
.withValues(alpha: _hovering2 ? 0.3 : 0)
: Theme.of(
context,
).extension<StackColors>()!.textFieldDefaultBG,
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/buy_view/buy_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class _BuyViewState extends ConsumerState<BuyView> {
Container(
color: Theme.of(
context,
).extension<StackColors>()!.overlay.withOpacity(0.7),
).extension<StackColors>()!.overlay.withValues(alpha: 0.7),
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: const StackDialog(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class _ExchangeCurrencySelectionViewState
child: Container(
color: Theme.of(
context,
).extension<StackColors>()!.overlay.withOpacity(0.6),
).extension<StackColors>()!.overlay.withValues(alpha: 0.6),
child: const CustomLoadingOverlay(
message: "Loading currencies",
eventBus: null,
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/exchange_view/exchange_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
child: Container(
color: Theme.of(
context,
).extension<StackColors>()!.overlay.withOpacity(0.6),
).extension<StackColors>()!.overlay.withValues(alpha: 0.6),
child: const CustomLoadingOverlay(
message: "Updating exchange rate",
eventBus: null,
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/exchange_view/exchange_loading_overlay.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class _ExchangeLoadingOverlayViewState
color: Theme.of(context)
.extension<StackColors>()!
.overlay
.withOpacity(0.7),
.withValues(alpha: 0.7),
child: const CustomLoadingOverlay(
message: "Loading Exchange data",
eventBus: null,
Expand All @@ -93,7 +93,7 @@ class _ExchangeLoadingOverlayViewState
color: Theme.of(context)
.extension<StackColors>()!
.overlay
.withOpacity(0.7),
.withValues(alpha: 0.7),
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class _Step3ViewState extends ConsumerState<Step3View> {
color: Theme.of(context)
.extension<StackColors>()!
.overlay
.withOpacity(0.6),
.withValues(alpha: 0.6),
child:
const CustomLoadingOverlay(
message:
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/exchange_view/exchange_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
Material(
color: Theme.of(
context,
).extension<StackColors>()!.overlay.withOpacity(0.6),
).extension<StackColors>()!.overlay.withValues(alpha: 0.6),
child: const CustomLoadingOverlay(
message: "Updating exchange data",
subMessage: "This could take a few minutes",
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/exchange_view/send_from_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ class _SendFromCardState extends ConsumerState<SendFromCard> {
children: [
Container(
decoration: BoxDecoration(
color: ref.watch(pCoinColor(coin)).withOpacity(0.5),
color: ref.watch(pCoinColor(coin)).withValues(alpha: 0.5),
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class _WalletInitiatedExchangeViewState
Material(
color: Theme.of(
context,
).extension<StackColors>()!.overlay.withOpacity(0.6),
).extension<StackColors>()!.overlay.withValues(alpha: 0.6),
child: const CustomLoadingOverlay(
message: "Updating exchange data",
subMessage: "This could take a few minutes",
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/paynym/subwidgets/paynym_card_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class _PaynymCardButtonState extends ConsumerState<PaynymCardButton> {
? Theme.of(context)
.extension<StackColors>()!
.accentColorDark
.withOpacity(0.08)
.withValues(alpha: 0.08)
: Colors.transparent,
child: RawMaterialButton(
padding: const EdgeInsets.all(0),
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/receive_view/receive_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
child: Container(
color: Theme.of(
context,
).extension<StackColors>()!.overlay.withOpacity(0.5),
).extension<StackColors>()!.overlay.withValues(alpha: 0.5),
child: const CustomLoadingOverlay(
message: "Generating address",
eventBus: null,
Expand Down Expand Up @@ -310,7 +310,7 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
child: Container(
color: Theme.of(
context,
).extension<StackColors>()!.overlay.withOpacity(0.5),
).extension<StackColors>()!.overlay.withValues(alpha: 0.5),
child: const CustomLoadingOverlay(
message: "Generating address",
eventBus: null,
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/send_view/sub_widgets/mwc_slatepack_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class _MwcSlatepackDialogState extends ConsumerState<MwcSlatepackDialog> {
// decoration: BoxDecoration(
// color: Theme.of(
// context,
// ).extension<StackColors>()!.infoItemIcons.withOpacity(0.1),
// ).extension<StackColors>()!.infoItemIcons.withValues(alpha: 0.1),
// borderRadius: BorderRadius.circular(8),
// ),
// child: Row(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
color: Theme.of(context)
.extension<StackColors>()!
.textDark
.withOpacity(0.5),
.withValues(alpha: 0.5),
),
readOnly: true,
enableSuggestions: false,
Expand Down Expand Up @@ -401,7 +401,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
color: Theme.of(context)
.extension<StackColors>()!
.textDark
.withOpacity(0.5),
.withValues(alpha: 0.5),
),
obscureText: true,
enableSuggestions: false,
Expand Down Expand Up @@ -434,7 +434,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
style: STextStyles.field(context).copyWith(
color: Theme.of(
context,
).extension<StackColors>()!.textDark.withOpacity(0.5),
).extension<StackColors>()!.textDark.withValues(alpha: 0.5),
),
toolbarOptions: const ToolbarOptions(
copy: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class _StartupWalletSelectionViewState
),
),
)
.withOpacity(0.5),
.withValues(alpha: 0.5),
borderRadius:
BorderRadius.circular(
Constants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class WalletSyncingOptionsView extends ConsumerWidget {
decoration: BoxDecoration(
color: ref
.watch(pCoinColor(info.coin))
.withOpacity(0.5),
.withValues(alpha: 0.5),
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ class _WalletNetworkSettingsViewState
color: Theme.of(context)
.extension<StackColors>()!
.accentColorGreen
.withOpacity(0.2),
.withValues(alpha: 0.2),
borderRadius: BorderRadius.circular(_iconSize),
),
child: Center(
Expand Down Expand Up @@ -600,7 +600,7 @@ class _WalletNetworkSettingsViewState
color: Theme.of(context)
.extension<StackColors>()!
.accentColorYellow
.withOpacity(0.2),
.withValues(alpha: 0.2),
borderRadius: BorderRadius.circular(_iconSize),
),
child: Center(
Expand Down Expand Up @@ -701,7 +701,7 @@ class _WalletNetworkSettingsViewState
color: Theme.of(context)
.extension<StackColors>()!
.accentColorRed
.withOpacity(0.2),
.withValues(alpha: 0.2),
borderRadius: BorderRadius.circular(_iconSize),
),
child: Center(
Expand Down Expand Up @@ -849,7 +849,7 @@ class _WalletNetworkSettingsViewState
color: Theme.of(context)
.extension<StackColors>()!
.accentColorGreen
.withOpacity(0.2),
.withValues(alpha: 0.2),
borderRadius: BorderRadius.circular(_iconSize),
),
child: Center(
Expand All @@ -872,7 +872,7 @@ class _WalletNetworkSettingsViewState
decoration: BoxDecoration(
color: Theme.of(
context,
).extension<StackColors>()!.textDark.withOpacity(0.08),
).extension<StackColors>()!.textDark.withValues(alpha: 0.08),
borderRadius: BorderRadius.circular(_iconSize),
),
child: Center(
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/shopinbit/shopinbit_send_from_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ class _ShopInBitSendFromCardState extends ConsumerState<ShopInBitSendFromCard> {
children: [
Container(
decoration: BoxDecoration(
color: ref.watch(pCoinColor(coin)).withOpacity(0.5),
color: ref.watch(pCoinColor(coin)).withValues(alpha: 0.5),
borderRadius: BorderRadius.circular(
Constants.size.circularBorderRadius,
),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/shopinbit/shopinbit_step_2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class _CategoryCard extends StatelessWidget {
height: isDesktop ? 48 : 40,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: colors.textDark.withOpacity(0.1),
color: colors.textDark.withValues(alpha: 0.1),
),
alignment: Alignment.center,
child: SvgPicture.asset(
Expand Down
6 changes: 3 additions & 3 deletions lib/pages/shopinbit/shopinbit_ticket_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ class _ShopInBitTicketDetailState extends ConsumerState<ShopInBitTicketDetail>
borderRadius: BorderRadius.circular(8),
color: status
.getColor(Theme.of(context).extension<StackColors>()!)
.withOpacity(0.2),
.withValues(alpha: 0.2),
),
child: Text(
status.label,
Expand Down Expand Up @@ -981,8 +981,8 @@ class _ChatBubble extends StatelessWidget {
.copyWith(
fontSize: 10,
color: isFromUser
? colors.buttonTextPrimary.withOpacity(0.7)
: colors.textSubtitle1.withOpacity(0.7),
? colors.buttonTextPrimary.withValues(alpha: 0.7)
: colors.textSubtitle1.withValues(alpha: 0.7),
),
),
],
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/shopinbit/shopinbit_tickets_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ class _StatusBadge extends StatelessWidget {
padding: const .symmetric(horizontal: 8, vertical: 2),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
color: color.withOpacity(0.2),
color: color.withValues(alpha: 0.2),
),
child: Text(text, style: style),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/token_view/sub_widgets/token_summary.dart
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class TokenOptionsButton extends StatelessWidget {
padding: const EdgeInsets.all(6),
color: Theme.of(
context,
).extension<StackColors>()!.tokenSummaryIcon.withOpacity(0.4),
).extension<StackColors>()!.tokenSummaryIcon.withValues(alpha: 0.4),
radiusMultiplier: 10,
child: Center(child: child),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/token_view/sub_widgets/token_summary_sol.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class TokenOptionsButton extends StatelessWidget {
color: Theme.of(context)
.extension<StackColors>()!
.tokenSummaryIcon
.withOpacity(0.4),
.withValues(alpha: 0.4),
radiusMultiplier: 10,
child: Center(child: child),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/wallet_view/sub_widgets/wallet_summary_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class WalletSummaryInfo extends ConsumerWidget {
color: Theme.of(context)
.extension<StackColors>()!
.textFavoriteCard
.withOpacity(0.7),
.withValues(alpha: 0.7),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class _DesktopAddressBook extends ConsumerState<DesktopAddressBook> {
color: Theme.of(context)
.extension<StackColors>()!
.accentColorDark
.withOpacity(
.withValues(alpha:
currentContactId == favorites[i].customId
? 0.08
: 0,
Expand Down Expand Up @@ -426,7 +426,7 @@ class _DesktopAddressBook extends ConsumerState<DesktopAddressBook> {
color: Theme.of(context)
.extension<StackColors>()!
.accentColorDark
.withOpacity(
.withValues(alpha:
currentContactId ==
allContacts[i].customId
? 0.08
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class _DesktopBuyViewState extends ConsumerState<DesktopBuyView> {
Container(
color: Theme.of(
context,
).extension<StackColors>()!.overlay.withOpacity(0.7),
).extension<StackColors>()!.overlay.withValues(alpha: 0.7),
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: DesktopDialog(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class _DesktopExchangeViewState extends ConsumerState<DesktopExchangeView> {
color: Theme.of(context)
.extension<StackColors>()!
.overlay
.withOpacity(0.6),
.withValues(alpha: 0.6),
child: const CustomLoadingOverlay(
message: "Updating exchange data",
subMessage: "This could take a few minutes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class _StepScaffoldState extends ConsumerState<StepScaffold> {
child: Container(
color: Theme.of(
context,
).extension<StackColors>()!.overlay.withOpacity(0.6),
).extension<StackColors>()!.overlay.withValues(alpha: 0.6),
child: const CustomLoadingOverlay(
message: "Creating a trade",
eventBus: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DesktopExchangeStepsIndicator extends StatelessWidget {
return Theme.of(context)
.extension<StackColors>()!
.accentColorBlue
.withOpacity(0.5);
.withValues(alpha: 0.5);
} else {
return Theme.of(context).extension<StackColors>()!.textSubtitle3;
}
Expand Down Expand Up @@ -64,7 +64,7 @@ class DesktopExchangeStepsIndicator extends StatelessWidget {
color: Theme.of(context)
.extension<StackColors>()!
.accentColorBlue
.withOpacity(0.5),
.withValues(alpha: 0.5),
),
),
crossFadeState: currentStep == 1
Expand Down Expand Up @@ -117,7 +117,7 @@ class DesktopExchangeStepsIndicator extends StatelessWidget {
color: Theme.of(context)
.extension<StackColors>()!
.accentColorBlue
.withOpacity(0.5),
.withValues(alpha: 0.5),
),
),
crossFadeState: currentStep == 2 && currentStep > 1
Expand Down Expand Up @@ -175,7 +175,7 @@ class DesktopExchangeStepsIndicator extends StatelessWidget {
color: Theme.of(context)
.extension<StackColors>()!
.accentColorBlue
.withOpacity(0.5),
.withValues(alpha: 0.5),
),
),
crossFadeState: currentStep == 3 && currentStep > 2
Expand Down
Loading
Loading