Merge pull request #81 from cake-tech/CAKE-266-add-a-frame-for-qr-code

Cake 266 add a frame for qr code
This commit is contained in:
M 2021-02-09 15:43:09 +02:00
commit 851e5e2644
2 changed files with 32 additions and 12 deletions

View file

@ -144,13 +144,24 @@ 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),
decoration: BoxDecoration(
border: Border.all(
color: Theme.of(context)
.accentTextTheme
.subtitle
.color
)
),
child: QrImage(
data: trade.inputAddress ?? fetchingLabel,
backgroundColor: Colors.transparent,
foregroundColor: Theme.of(context)
.accentTextTheme
.subtitle
.color,
),
)))),
Spacer(flex: 3)
]),

View file

@ -44,11 +44,20 @@ 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),
decoration: BoxDecoration(
border: Border.all(
color: Theme.of(context).accentTextTheme.
display3.backgroundColor
)
),
child: QrImage(
data: addressListViewModel.uri.toString(),
backgroundColor: Colors.transparent,
foregroundColor: Theme.of(context).accentTextTheme.
display3.backgroundColor,
),
))))),
Spacer(flex: 3)
]),