Skip to content

Commit f1037c5

Browse files
committed
fix: center QR code and remove fingerprint on viewing keys page
1 parent 4206dec commit f1037c5

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

lib/pages/account.dart

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,6 @@ class ViewingKeysPageState extends ConsumerState<ViewingKeysPage> {
11761176
late final c = coinContext.coin;
11771177
int pools = 7;
11781178
String? uvk;
1179-
String? fingerprint;
11801179
Seed? seed;
11811180
int accountPools = 7; // default to all pools
11821181
bool showSeed = false;
@@ -1185,7 +1184,6 @@ class ViewingKeysPageState extends ConsumerState<ViewingKeysPage> {
11851184
void initState() {
11861185
super.initState();
11871186
Future(() async {
1188-
fingerprint = await getAccountFingerprint(account: widget.account, c: c);
11891187
seed = await getAccountSeed(account: widget.account, c: c);
11901188
accountPools = await getAccountPools(account: widget.account, c: c);
11911189
setState(() {});
@@ -1239,19 +1237,10 @@ class ViewingKeysPageState extends ConsumerState<ViewingKeysPage> {
12391237
SliverToBoxAdapter(child: Gap(32)),
12401238
if (uvk != null)
12411239
SliverToBoxAdapter(
1242-
child: Padding(
1243-
padding: EdgeInsets.symmetric(horizontal: 16),
1240+
child: Center(
12441241
child: QrImageView(data: uvk!, size: 200, backgroundColor: Colors.white),
12451242
),
12461243
),
1247-
SliverToBoxAdapter(child: Gap(8)),
1248-
if (fingerprint != null)
1249-
SliverToBoxAdapter(
1250-
child: Padding(
1251-
padding: EdgeInsets.symmetric(horizontal: 16),
1252-
child: CopyableText(fingerprint!),
1253-
),
1254-
),
12551244
SliverToBoxAdapter(child: Gap(16)),
12561245
SliverToBoxAdapter(
12571246
child: Padding(

0 commit comments

Comments
 (0)