CAKE-266 | added a frame for qr code on qr_widget.dart and exchange_trade_page.dart

OleksandrSobol committed Feb 8, 2021 at 19:52 UTC 74d0adde03cc096f32e7f2e16a5822298e12f887
2 files changed +21 -12
lib/src/screens/exchange_trade/exchange_trade_page.dart
+11 -7
@@ -144,13 +144,17 @@ class ExchangeTradeState extends State<ExchangeTradeForm> {
144 child: Center(
145 child: AspectRatio(
146 aspectRatio: 1.0,
147 - child: QrImage(
148 - data: trade.inputAddress ?? fetchingLabel,
149 - backgroundColor: Colors.transparent,
150 - foregroundColor: Theme.of(context)
151 - .accentTextTheme
152 - .subtitle
153 - .color,
147 + child: Container(
148 + padding: EdgeInsets.all(5),
149 + color: Colors.white,
150 + child: QrImage(
151 + data: trade.inputAddress ?? fetchingLabel,
152 + backgroundColor: Colors.white,
153 + /*foregroundColor: Theme.of(context)
154 + .accentTextTheme
155 + .subtitle
156 + .color,*/
157 + ),
158 )))),
159 Spacer(flex: 3)
160 ]),
lib/src/screens/receive/widgets/qr_widget.dart
+10 -5
@@ -44,11 +44,16 @@ class QRWidget extends StatelessWidget {
44 child: Center(
45 child: AspectRatio(
46 aspectRatio: 1.0,
47 - child: QrImage(
48 - data: addressListViewModel.uri.toString(),
49 - backgroundColor: Colors.transparent,
50 - foregroundColor: Theme.of(context).accentTextTheme.
51 - display3.backgroundColor,
47 + child: Container(
48 + padding: EdgeInsets.all(5),
49 + color: Colors.white,
50 + child: QrImage(
51 + data: addressListViewModel.uri.toString(),
52 + //backgroundColor: Colors.transparent,
53 + backgroundColor: Colors.white,
54 + /*foregroundColor: Theme.of(context).accentTextTheme.
55 + display3.backgroundColor,*/
56 + ),
57 ))))),
58 Spacer(flex: 3)
59 ]),