fixed share URL

This commit is contained in:
randogoth 2025-02-19 11:07:34 +02:00
parent 501147ead5
commit 469beb2a57
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,5 @@
# web3terms
A web app demo featuring [map3terms](https://github.com/randogoth/map3terms)
A web app demo featuring [map3terms](https://github.com/randogoth/map3terms)
>> [https://randogoth.github.io/web3terms/](https://randogoth.github.io/web3terms/)

View file

@ -262,7 +262,7 @@ class _Map3TermsHomeState extends State<Map3TermsHome> {
child: FloatingActionButton(
onPressed: () {
final String terms = _inputController.text.replaceAll(" ", "-"); // Convert to URL format
final String shareableUrl = "https://yourapp.com/?terms=$terms";
final String shareableUrl = "https://randogoth.github.io/web3terms/#/?terms=$terms";
Clipboard.setData(ClipboardData(text: shareableUrl));
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text("Copied to clipboard: $shareableUrl")),