Changed The QRCode background color from Navy Blue to Black in dark mode.

RafiaChy committed Feb 7, 2022 at 20:32 UTC 73338728fb29ae233795760b867b08e6edec9933
3 files changed +5 -5
lib/src/screens/dashboard/widgets/address_page.dart
+1 -1
@@ -75,7 +75,7 @@ class AddressPage extends StatelessWidget {
75 addressListViewModel: addressListViewModel,
76 amountTextFieldFocusNode: _cryptoAmountFocus,
77 isAmountFieldShow: !addressListViewModel.hasAccounts,
78 - isBright: walletViewModel.settingsStore.currentTheme.type == ThemeType.bright))
78 + isLight: walletViewModel.settingsStore.currentTheme.type == ThemeType.light))
79 ),
80 Observer(builder: (_) {
81 return addressListViewModel.hasAddressList
lib/src/screens/receive/receive_page.dart
+1 -1
@@ -129,7 +129,7 @@ class ReceivePage extends BasePage {
129 addressListViewModel: addressListViewModel,
130 isAmountFieldShow: true,
131 amountTextFieldFocusNode: _cryptoAmountFocus,
132 - isBright: currentTheme.type == ThemeType.bright),
132 + isLight: currentTheme.type == ThemeType.light),
133 ),
134 Observer(
135 builder: (_) => ListView.separated(
lib/src/screens/receive/widgets/qr_widget.dart
+3 -3
@@ -14,7 +14,7 @@ class QRWidget extends StatelessWidget {
14 {@required this.addressListViewModel,
15 this.isAmountFieldShow = false,
16 this.amountTextFieldFocusNode,
17 - this.isBright})
17 + this.isLight})
18 : amountController = TextEditingController(),
19 _formKey = GlobalKey<FormState>() {
20 amountController.addListener(() => addressListViewModel.amount =
@@ -26,7 +26,7 @@ class QRWidget extends StatelessWidget {
26 final TextEditingController amountController;
27 final FocusNode amountTextFieldFocusNode;
28 final GlobalKey<FormState> _formKey;
29 - final bool isBright;
29 + final bool isLight;
30
31 @override
32 Widget build(BuildContext context) {
@@ -57,7 +57,7 @@ class QRWidget extends StatelessWidget {
57 ),
58 child: QrImage(
59 data: addressListViewModel.uri.toString(),
60 - backgroundColor: isBright ? Colors.black : Colors.transparent,
60 + backgroundColor: isLight ? Colors.transparent : Colors.black,
61 foregroundColor: Theme.of(context).accentTextTheme.
62 display3.backgroundColor,
63 ),