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

This commit is contained in:
OleksandrSobol 2021-02-08 19:52:12 +02:00
parent 398f32c437
commit 74d0adde03
2 changed files with 21 additions and 12 deletions

View file

@ -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)
]),

View file

@ -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)
]),