diff --git a/lib/ui/home/home_empty_state.dart b/lib/ui/home/home_empty_state.dart index 10f45324ff5b141150acdb0d4ae0fbafe624f9bd..2e28700fd64dabe5a5f53607b2e64e18cd3cdac2 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 1d3872f0357f42603b5064b8334165fc5bb74bba..a067bc024185205e2980798753b55345816780d5 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,