You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've developed course manager app that fits specific requirements of a sports club that I am a member of. The app fulfills the following main function:
Users (or participants in our sports group) can navigate from the homepage to an overview page that lists all available courses.
By clicking on one of the courses, you will be taken to a detail page where you can then register for and cancel the course.
I use firebase for the data structure. Each event is assigned a unique ID from the firestore collection.
Now I would like to implement a "Share" button on the detail page. By clicking on it, a link should be generated and moved to the clipboard so that I can then send it via Whatsapp, for example. Users who click on it should be taken directly to the details page.
As you can see, there is a GoRoute defined which gets the eventId (the event id comes from firestore).
Futhermore, I created a details page. This is the place where the share button should be included. I think the only interesting thing should be the "_copyLinkToClipboard" function and the share button I added:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"><application android:label="ParaVertikale" android:name="${applicationName}" android:icon="@mipmap/ic_launcher"><activity android:name=".MainActivity" android:enableOnBackInvokedCallback="true" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize" android:roundIcon="@mipmap/round_launcher"><!--Specifies an Android theme to apply to thisActivityas soon as
the Android process has started. This theme is visible to the user
while the FlutterUI initializes. After that, this theme continues
to determine the Window background behind the FlutterUI. --><meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme"/><intent-filter><action android:name="android.intent.action.MAIN"/><category android:name="android.intent.category.LAUNCHER"/></intent-filter><meta-data android:name="flutter_deeplinking_enabled" android:value="true"/><intent-filter android:autoVerify="true"><action android:name="android.intent.action.VIEW"/><category android:name="android.intent.category.DEFAULT"/><category android:name="android.intent.category.BROWSABLE"/><data android:scheme="http" android:host="paravertikale-augsburg.de"/><data android:scheme="https" android:host="paravertikale-augsburg.de"/><data android:pathPattern="/event/.*"/></intent-filter></activity><!--Don't delete the meta-data below. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> <meta-data android:name="flutterEmbedding" android:value="2"/> </application></manifest>
The thing is, I don't know why it doesn't work and I don't know how to generate a dynamic link that points to the event details.
Can anyone help me with this?
Thanks and regards
Dennis
The text was updated successfully, but these errors were encountered:
Hi guys,
I've developed course manager app that fits specific requirements of a sports club that I am a member of. The app fulfills the following main function:
Users (or participants in our sports group) can navigate from the homepage to an overview page that lists all available courses.
By clicking on one of the courses, you will be taken to a detail page where you can then register for and cancel the course.
I use firebase for the data structure. Each event is assigned a unique ID from the firestore collection.
Now I would like to implement a "Share" button on the detail page. By clicking on it, a link should be generated and moved to the clipboard so that I can then send it via Whatsapp, for example. Users who click on it should be taken directly to the details page.
I have already defined the following routes:
As you can see, there is a GoRoute defined which gets the eventId (the event id comes from firestore).
Futhermore, I created a details page. This is the place where the share button should be included. I think the only interesting thing should be the "_copyLinkToClipboard" function and the share button I added:
I added this to my androidmanisfest.xml
The thing is, I don't know why it doesn't work and I don't know how to generate a dynamic link that points to the event details.
Can anyone help me with this?
Thanks and regards
Dennis
The text was updated successfully, but these errors were encountered: