CAKE-266 | added a frame for qr code on qr_widget.dart and exchange_trade_page.dart
OleksandrSobol committed
Feb 8, 2021 at 20:28 UTC
d708925098c43875ad439901f61eb4b5ebc6407b
2 files changed
+20
-9
lib/src/screens/exchange_trade/exchange_trade_page.dart
+11
-4
@@ -146,14 +146,21 @@ class ExchangeTradeState extends State<ExchangeTradeForm> {
146
aspectRatio: 1.0,
147
child: Container(
148
padding: EdgeInsets.all(5),
149
- color: Colors.white,
149
+ decoration: BoxDecoration(
150
+ border: Border.all(
151
+ color: Theme.of(context)
152
+ .accentTextTheme
153
+ .subtitle
154
+ .color
155
+ )
156
+ ),
157
child: QrImage(
158
data: trade.inputAddress ?? fetchingLabel,
152
- backgroundColor: Colors.white,
153
- /*foregroundColor: Theme.of(context)
159
+ backgroundColor: Colors.transparent,
160
+ foregroundColor: Theme.of(context)
161
.accentTextTheme
162
.subtitle
156
- .color,*/
163
+ .color,
164
),
165
)))),
166
Spacer(flex: 3)
lib/src/screens/receive/widgets/qr_widget.dart
+9
-5
@@ -46,13 +46,17 @@ class QRWidget extends StatelessWidget {
46
aspectRatio: 1.0,
47
child: Container(
48
padding: EdgeInsets.all(5),
49
- color: Colors.white,
49
+ decoration: BoxDecoration(
50
+ border: Border.all(
51
+ color: Theme.of(context).accentTextTheme.
52
+ display3.backgroundColor
53
+ )
54
+ ),
55
child: QrImage(
56
data: addressListViewModel.uri.toString(),
52
- //backgroundColor: Colors.transparent,
53
- backgroundColor: Colors.white,
54
- /*foregroundColor: Theme.of(context).accentTextTheme.
55
- display3.backgroundColor,*/
57
+ backgroundColor: Colors.transparent,
58
+ foregroundColor: Theme.of(context).accentTextTheme.
59
+ display3.backgroundColor,
60
),
61
))))),
62
Spacer(flex: 3)