mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
CAKE-266 | added a frame for qr code on qr_widget.dart and exchange_trade_page.dart
This commit is contained in:
parent
74d0adde03
commit
d708925098
2 changed files with 20 additions and 9 deletions
|
@ -146,14 +146,21 @@ class ExchangeTradeState extends State<ExchangeTradeForm> {
|
||||||
aspectRatio: 1.0,
|
aspectRatio: 1.0,
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.all(5),
|
padding: EdgeInsets.all(5),
|
||||||
color: Colors.white,
|
decoration: BoxDecoration(
|
||||||
|
border: Border.all(
|
||||||
|
color: Theme.of(context)
|
||||||
|
.accentTextTheme
|
||||||
|
.subtitle
|
||||||
|
.color
|
||||||
|
)
|
||||||
|
),
|
||||||
child: QrImage(
|
child: QrImage(
|
||||||
data: trade.inputAddress ?? fetchingLabel,
|
data: trade.inputAddress ?? fetchingLabel,
|
||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.transparent,
|
||||||
/*foregroundColor: Theme.of(context)
|
foregroundColor: Theme.of(context)
|
||||||
.accentTextTheme
|
.accentTextTheme
|
||||||
.subtitle
|
.subtitle
|
||||||
.color,*/
|
.color,
|
||||||
),
|
),
|
||||||
)))),
|
)))),
|
||||||
Spacer(flex: 3)
|
Spacer(flex: 3)
|
||||||
|
|
|
@ -46,13 +46,17 @@ class QRWidget extends StatelessWidget {
|
||||||
aspectRatio: 1.0,
|
aspectRatio: 1.0,
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.all(5),
|
padding: EdgeInsets.all(5),
|
||||||
color: Colors.white,
|
decoration: BoxDecoration(
|
||||||
|
border: Border.all(
|
||||||
|
color: Theme.of(context).accentTextTheme.
|
||||||
|
display3.backgroundColor
|
||||||
|
)
|
||||||
|
),
|
||||||
child: QrImage(
|
child: QrImage(
|
||||||
data: addressListViewModel.uri.toString(),
|
data: addressListViewModel.uri.toString(),
|
||||||
//backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
backgroundColor: Colors.white,
|
foregroundColor: Theme.of(context).accentTextTheme.
|
||||||
/*foregroundColor: Theme.of(context).accentTextTheme.
|
display3.backgroundColor,
|
||||||
display3.backgroundColor,*/
|
|
||||||
),
|
),
|
||||||
))))),
|
))))),
|
||||||
Spacer(flex: 3)
|
Spacer(flex: 3)
|
||||||
|
|
Loading…
Reference in a new issue