|
|
|
@ -14,7 +14,7 @@ class QRWidget extends StatelessWidget {
|
|
|
|
|
{@required this.addressListViewModel,
|
|
|
|
|
this.isAmountFieldShow = false,
|
|
|
|
|
this.amountTextFieldFocusNode,
|
|
|
|
|
this.isBright})
|
|
|
|
|
this.isLight})
|
|
|
|
|
: amountController = TextEditingController(),
|
|
|
|
|
_formKey = GlobalKey<FormState>() {
|
|
|
|
|
amountController.addListener(() => addressListViewModel.amount =
|
|
|
|
@ -26,7 +26,7 @@ class QRWidget extends StatelessWidget {
|
|
|
|
|
final TextEditingController amountController;
|
|
|
|
|
final FocusNode amountTextFieldFocusNode;
|
|
|
|
|
final GlobalKey<FormState> _formKey;
|
|
|
|
|
final bool isBright;
|
|
|
|
|
final bool isLight;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
@ -57,7 +57,7 @@ class QRWidget extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
child: QrImage(
|
|
|
|
|
data: addressListViewModel.uri.toString(),
|
|
|
|
|
backgroundColor: isBright ? Colors.black : Colors.transparent,
|
|
|
|
|
backgroundColor: isLight ? Colors.transparent : Colors.black,
|
|
|
|
|
foregroundColor: Theme.of(context).accentTextTheme.
|
|
|
|
|
display3.backgroundColor,
|
|
|
|
|
),
|
|
|
|
|