Skip to content
Snippets Groups Projects
Commit 33b189ae authored by vjrj's avatar vjrj
Browse files

Show export/import always

parent 6b108a28
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ class FifthScreen extends StatelessWidget {
const TextDivider(text: 'faq_title'),
const FAQ(),
const TextDivider(text: 'key_tools_title'),
const SizedBox(height: 20),
GridView.count(
physics: const NeverScrollableScrollPhysics(),
crossAxisCount: 2,
......@@ -82,30 +83,6 @@ class FifthScreen extends StatelessWidget {
shrinkWrap: true,
padding: EdgeInsets.zero,
children: <GridItem>[
if (state.expertMode)
GridItem(
title: 'export_key',
icon: Icons.download,
onTap: () {
showDialog(
context: context,
builder: (BuildContext context) {
return const ExportDialog();
},
);
}),
if (state.expertMode)
GridItem(
title: 'import_key',
icon: Icons.upload,
onTap: () {
showDialog(
context: context,
builder: (BuildContext context) {
return const ImportDialog();
},
);
}),
if (showShare())
GridItem(
title: 'share_your_key',
......@@ -116,7 +93,29 @@ class FifthScreen extends StatelessWidget {
title: 'copy_your_key',
icon: Icons.copy,
onTap: () => copyPublicKeyToClipboard(context),
)
),
GridItem(
title: 'export_key',
icon: Icons.download,
onTap: () {
showDialog(
context: context,
builder: (BuildContext context) {
return const ExportDialog();
},
);
}),
GridItem(
title: 'import_key',
icon: Icons.upload,
onTap: () {
showDialog(
context: context,
builder: (BuildContext context) {
return const ImportDialog();
},
);
}),
]),
if (state.expertMode)
const TextDivider(text: 'technical_info_title'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment