mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-19 10:39:26 +01:00
chore: Follow up secrity settings design
This commit is contained in:
parent
a090346046
commit
59d3793060
@ -1,6 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:adaptive_dialog/adaptive_dialog.dart';
|
|
||||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||||
import 'package:vrouter/vrouter.dart';
|
import 'package:vrouter/vrouter.dart';
|
||||||
|
|
||||||
@ -25,13 +24,13 @@ class SettingsSecurityView extends StatelessWidget {
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.panorama_fish_eye),
|
leading: const Icon(Icons.camera_outlined),
|
||||||
trailing: const Icon(Icons.chevron_right_outlined),
|
trailing: const Icon(Icons.chevron_right_outlined),
|
||||||
title: Text(L10n.of(context)!.whoCanSeeMyStories),
|
title: Text(L10n.of(context)!.whoCanSeeMyStories),
|
||||||
onTap: () => VRouter.of(context).to('stories'),
|
onTap: () => VRouter.of(context).to('stories'),
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.close),
|
leading: const Icon(Icons.block_outlined),
|
||||||
trailing: const Icon(Icons.chevron_right_outlined),
|
trailing: const Icon(Icons.chevron_right_outlined),
|
||||||
title: Text(L10n.of(context)!.ignoredUsers),
|
title: Text(L10n.of(context)!.ignoredUsers),
|
||||||
onTap: () => VRouter.of(context).to('ignorelist'),
|
onTap: () => VRouter.of(context).to('ignorelist'),
|
||||||
@ -61,14 +60,6 @@ class SettingsSecurityView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Text(L10n.of(context)!.yourPublicKey),
|
title: Text(L10n.of(context)!.yourPublicKey),
|
||||||
onTap: () => showOkAlertDialog(
|
|
||||||
useRootNavigator: false,
|
|
||||||
context: context,
|
|
||||||
title: L10n.of(context)!.yourPublicKey,
|
|
||||||
message:
|
|
||||||
Matrix.of(context).client.fingerprintKey.beautified,
|
|
||||||
okLabel: L10n.of(context)!.ok,
|
|
||||||
),
|
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
Matrix.of(context).client.fingerprintKey.beautified,
|
Matrix.of(context).client.fingerprintKey.beautified,
|
||||||
style: const TextStyle(fontFamily: 'monospace'),
|
style: const TextStyle(fontFamily: 'monospace'),
|
||||||
|
Loading…
Reference in New Issue
Block a user