-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(analytics): implement wiredash feedback form
- Loading branch information
1 parent
bf953c3
commit 8856176
Showing
14 changed files
with
4,374 additions
and
27 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
API_URL="https://<...>" | ||
ASSETS_URL="https://<...>" | ||
IPARKING_URL="https://<...>" | ||
IPARKING_URL="https://<...>" | ||
WIREDASH_ID="<...>" | ||
WIREDASH_SECRET="<...>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import "package:flutter/material.dart"; | ||
import "package:lottie/lottie.dart"; | ||
import "package:wiredash/wiredash.dart"; | ||
|
||
import "../../../config/ui_config.dart"; | ||
import "../../../gen/assets.gen.dart"; | ||
import "../../../utils/context_extensions.dart"; | ||
import "../../../widgets/wide_tile_card.dart"; | ||
|
||
class ShowFeedbackTile extends StatelessWidget { | ||
const ShowFeedbackTile({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return WideTileCard( | ||
title: context.localize.bug_report_title, | ||
subtitle: context.localize.bug_report_subtitle, | ||
onTap: () { | ||
Wiredash.of(context).show( | ||
options: WiredashFeedbackOptions( | ||
labels: [ | ||
Label( | ||
id: "label-a9v91o7kdq", | ||
title: context.localize.new_feature, | ||
), | ||
Label(id: "label-bekp7mkn82", title: context.localize.bug), | ||
Label(id: "label-ykl4o5vddu", title: context.localize.praise), | ||
], | ||
), | ||
); | ||
}, | ||
trailing: Lottie.asset( | ||
Assets.animations.bug, | ||
width: WideTileCardConfig.imageSize, | ||
height: WideTileCardConfig.imageSize, | ||
animate: true, | ||
repeat: true, | ||
frameRate: FrameRate.max, | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import "package:wiredash/wiredash.dart"; | ||
|
||
import "../../../theme/colors.dart"; | ||
|
||
abstract class WiredashTheme { | ||
static WiredashThemeData get theme => WiredashThemeData( | ||
primaryColor: ColorsConsts.orangePomegranade, | ||
secondaryColor: ColorsConsts.blueAzure, | ||
primaryBackgroundColor: ColorsConsts.whiteSoap, | ||
secondaryBackgroundColor: ColorsConsts.whiteSoap, | ||
appBackgroundColor: ColorsConsts.blackMirage, | ||
appHandleBackgroundColor: ColorsConsts.greyPigeon, | ||
firstPenColor: ColorsConsts.orangePomegranade, | ||
secondPenColor: ColorsConsts.blueAzure, | ||
thirdPenColor: ColorsConsts.greyPigeon, | ||
fourthPenColor: ColorsConsts.blackMirage, | ||
errorColor: ColorsConsts.orangePomegranade, | ||
primaryContainerColor: ColorsConsts.blueAzure, | ||
textOnPrimaryContainerColor: ColorsConsts.whiteSoap, | ||
secondaryContainerColor: ColorsConsts.greyLight, | ||
textOnSecondaryContainerColor: ColorsConsts.blackMirage, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters