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

wownero
OleksandrSobol 3 years ago
parent 398f32c437
commit 74d0adde03

@ -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…
Cancel
Save