integrated link sharing and clipboard options directly into QR view and simplified sharing flow by removing intermediate selection dialog
This commit is contained in:
@@ -8,7 +8,6 @@ import '../../routing/app_routes.dart';
|
||||
import '../../state/app/modules/app_modules.dart';
|
||||
import '../../widget/centered_leading.dart';
|
||||
import '../../widget/info_dialog.dart';
|
||||
import 'more/share/select_share_type_dialog.dart';
|
||||
|
||||
class Overhang extends StatefulWidget {
|
||||
const Overhang({super.key});
|
||||
@@ -45,11 +44,7 @@ class _OverhangState extends State<Overhang> {
|
||||
title: const Text('Teile die App'),
|
||||
subtitle: const Text('Mit Freunden und deiner Klasse teilen'),
|
||||
trailing: const Icon(Icons.arrow_right),
|
||||
onTap: () async {
|
||||
final result = await showSelectShareTypeSheet(context);
|
||||
if (!mounted || result != ShareTargetType.qr) return;
|
||||
if (context.mounted) AppRoutes.openQrShare(context);
|
||||
},
|
||||
onTap: () => AppRoutes.openQrShare(context),
|
||||
),
|
||||
FutureBuilder(
|
||||
future: InAppReview.instance.isAvailable(),
|
||||
|
||||
Reference in New Issue
Block a user