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
398f32c437
commit
74d0adde03
2 changed files with 21 additions and 12 deletions
|
@ -144,13 +144,17 @@ class ExchangeTradeState extends State<ExchangeTradeForm> {
|
|||
child: Center(
|
||||
child: AspectRatio(
|
||||
aspectRatio: 1.0,
|
||||
child: QrImage(
|
||||
data: trade.inputAddress ?? fetchingLabel,
|
||||
backgroundColor: Colors.transparent,
|
||||
foregroundColor: Theme.of(context)
|
||||
.accentTextTheme
|
||||
.subtitle
|
||||
.color,
|
||||
child: Container(
|
||||
padding: EdgeInsets.all(5),
|
||||
color: Colors.white,
|
||||
child: QrImage(
|
||||
data: trade.inputAddress ?? fetchingLabel,
|
||||
backgroundColor: Colors.white,
|
||||
/*foregroundColor: Theme.of(context)
|
||||
.accentTextTheme
|
||||
.subtitle
|
||||
.color,*/
|
||||
),
|
||||
)))),
|
||||
Spacer(flex: 3)
|
||||
]),
|
||||
|
|
|
@ -44,11 +44,16 @@ class QRWidget extends StatelessWidget {
|
|||
child: Center(
|
||||
child: AspectRatio(
|
||||
aspectRatio: 1.0,
|
||||
child: QrImage(
|
||||
data: addressListViewModel.uri.toString(),
|
||||
backgroundColor: Colors.transparent,
|
||||
foregroundColor: Theme.of(context).accentTextTheme.
|
||||
display3.backgroundColor,
|
||||
child: Container(
|
||||
padding: EdgeInsets.all(5),
|
||||
color: Colors.white,
|
||||
child: QrImage(
|
||||
data: addressListViewModel.uri.toString(),
|
||||
//backgroundColor: Colors.transparent,
|
||||
backgroundColor: Colors.white,
|
||||
/*foregroundColor: Theme.of(context).accentTextTheme.
|
||||
display3.backgroundColor,*/
|
||||
),
|
||||
))))),
|
||||
Spacer(flex: 3)
|
||||
]),
|
||||
|
|
Loading…
Reference in a new issue