Skip to content

Commit

Permalink
UI enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpizza committed Nov 7, 2024
1 parent ceafd91 commit 1233b0f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
22 changes: 18 additions & 4 deletions lib/views/receive.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,25 @@ class Receive extends AbstractView {
Padding(
padding:
const EdgeInsets.only(top: 8, left: 48, right: 48, bottom: 32),
child: Container(
padding: const EdgeInsets.all(10.0),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(30.0),
color: Colors.white,
),
child: QrImageView(
data: "monero:${viewModel.address}",
foregroundColor: Colors.white,
foregroundColor: Colors.black,
),
),
InkWell(
),
Container(
padding: const EdgeInsets.all(25.0),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(30.0),
color: Color.fromRGBO(35, 44, 79, 1),
),
child: InkWell(
onTap: () {
Clipboard.setData(
ClipboardData(
Expand All @@ -47,7 +60,7 @@ class Receive extends AbstractView {
);
},
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
padding: const EdgeInsets.symmetric(horizontal: 0),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Expand All @@ -56,9 +69,10 @@ class Receive extends AbstractView {
viewModel.address,
style: const TextStyle(color: Colors.white),
)),
const Icon(Icons.copy),
const Icon(Icons.copy, color: Colors.grey),
],
),
),
),
),
],
Expand Down
11 changes: 9 additions & 2 deletions lib/views/urqr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,19 @@ class _URQRState extends State<URQR> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
Center(
child: Container(
padding: const EdgeInsets.all(17.0),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(30.0),
color: Colors.white,
),
child: QrImageView(
foregroundColor: Colors.white,
foregroundColor: Colors.black,
data: widget.frames[frame % widget.frames.length],
version: -1,
size: 400,
size: 275,
),
),
),
],
);
Expand Down
2 changes: 1 addition & 1 deletion lib/views/wallet_home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class WalletHome extends AbstractView {
onPressed: () =>
Receive.pushStatic(context, viewModel.wallet),
icon:
const Icon(Icons.inbox, size: 35, color: Colors.white),
const Icon(Icons.call_received, size: 35, color: Colors.white),
label: Text(
L.receive,
style: const TextStyle(color: Colors.white, fontSize: 18),
Expand Down

0 comments on commit 1233b0f

Please sign in to comment.