diff --git a/lib/ui/home/home_empty_state.dart b/lib/ui/home/home_empty_state.dart index 10f45324f..2e28700fd 100644 --- a/lib/ui/home/home_empty_state.dart +++ b/lib/ui/home/home_empty_state.dart @@ -1,5 +1,10 @@ import 'package:ente_auth/l10n/l10n.dart'; +import 'package:ente_auth/theme/ente_theme.dart'; +import 'package:ente_auth/ui/settings/data/import_page.dart'; +import 'package:ente_auth/ui/settings/faq.dart'; +import 'package:ente_auth/utils/navigation_util.dart'; import 'package:flutter/material.dart'; +import 'package:url_launcher/url_launcher.dart'; class HomeEmptyStateWidget extends StatelessWidget { final VoidCallback? onScanTap; @@ -50,6 +55,33 @@ class HomeEmptyStateWidget extends StatelessWidget { child: Text(l10n.importEnterSetupKey), ), ), + const SizedBox(height: 54), + InkWell( + onTap: () { + routeToPage(context, ImportCodePage()); + }, + child: Text( + l10n.importCodes, + textAlign: TextAlign.center, + style: getEnteTextTheme(context).bodyFaint.copyWith(decoration: TextDecoration.underline), + ),), + const SizedBox(height: 18), + InkWell( + onTap: () { + showModalBottomSheet( + backgroundColor: Theme.of(context).colorScheme.background, + barrierColor: Colors.black87, + context: context, + builder: (context) { + return const FAQQuestionsWidget(); + }, + ); + }, + child: Text( + l10n.faq, + textAlign: TextAlign.center, + style: getEnteTextTheme(context).bodyFaint.copyWith(decoration: TextDecoration.underline), + ),), ], ), ], diff --git a/lib/ui/settings/data/data_section_widget.dart b/lib/ui/settings/data/data_section_widget.dart index 1d3872f03..a067bc024 100644 --- a/lib/ui/settings/data/data_section_widget.dart +++ b/lib/ui/settings/data/data_section_widget.dart @@ -40,7 +40,6 @@ class DataSectionWidget extends StatelessWidget { trailingIconIsMuted: true, onTap: () async { routeToPage(context, ImportCodePage()); - // _showImportInstructionDialog(context); }, ), sectionOptionSpacing,