add qr share

This commit is contained in:
Fabian Freund
2025-05-29 14:21:53 +02:00
parent 6985e5f2d5
commit 0ef2237925
5 changed files with 94 additions and 7 deletions
@@ -0,0 +1,24 @@
import 'package:flutter/material.dart';
class ShareTile extends StatelessWidget {
final void Function()? onTap;
final void Function()? onTapQr;
const ShareTile({super.key, this.onTap, this.onTapQr});
@override
Widget build(BuildContext context) {
return ListTile(
leading: const Icon(Icons.share),
title: const Text('Share link'),
onTap: onTap,
trailing: Row(
mainAxisSize: MainAxisSize.min,
children: [
const VerticalDivider(indent: 4, endIndent: 4),
IconButton(icon: const Icon(Icons.qr_code), onPressed: onTapQr),
],
),
);
}
}