snipe_superk_social 0.0.1
snipe_superk_social: ^0.0.1 copied to clipboard
snipe_superk_social
Snipe Social #
Overview #
This documentation provides instructions on how to use the ElevatedButton widgets to navigate to the Snipe Transaction History and Referral screens in a Flutter application.
Usage #
The provided code snippet demonstrates how to use two ElevatedButton widgets to navigate to the Snipe Transaction History and Referral screens. Each button triggers navigation to a different screen using the Navigator.push method.
Snipe Transaction History #
To navigate to the Snipe Transaction History screen, use the following code:
ElevatedButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SnipeTransactionHistory(
userId: "snipe-user-id",
apiKey: "api-key",
),
),
);
},
child: const Text("Open History Page"),
),
Replace "snipe-user-id" and "api-key" with the appropriate user ID and API key values.
Snipe Referral #
To navigate to the Snipe Referral screen, use the following code:
ElevatedButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SnipeReferral(
userId: "snipe-user-id",
apiKey: "api-key",
),
),
);
},
child: const Text("Open Referral Page"),
),
Replace "snipe-user-id" and "api-key" with the appropriate user ID and API key values.
Notes #
- Ensure that the
SnipeTransactionHistoryandSnipeReferralclasses/widgets are correctly implemented and imported into your Flutter application. - Modify the navigation parameters (
userIdandapiKey) according to your application's requirements.