Skip to content

Commit

Permalink
feat: remove faqs section from drawer (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsgalarraga authored Jun 19, 2024
1 parent 2f20697 commit 7f2f05e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 35 deletions.
7 changes: 0 additions & 7 deletions lib/drawer/view/crossword_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,6 @@ class CrosswordDrawer extends StatelessWidget {
context.launchUrl(ProjectDetailsLinks.termsOfService);
},
),
DrawerItem(
title: l10n.faqs,
icon: Icons.chat,
onPressed: () {
context.launchUrl(ProjectDetailsLinks.faqs);
},
),
];

return Drawer(
Expand Down
6 changes: 1 addition & 5 deletions lib/l10n/arb/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,6 @@
"@termsOfService": {
"description": "Terms of Service label"
},
"faqs": "FAQs",
"@faqs": {
"description": "FAQs label"
},
"type": "Type",
"@type": {
"description": "Type word."
Expand Down Expand Up @@ -344,7 +340,7 @@
"description": "The first step instruction on how to play."
},
"aboutHowToPlaySecondInstructionsTitle": "Solve the Word, Earn Points",
"@aboutHowToPlaySecondInstructionstitle": {
"@aboutHowToPlaySecondInstructionsTitle": {
"description": "The second step instruction title."
},
"aboutHowToPlaySecondInstructions": "Think you know the answer? Take a guess and solve it! You'll earn points for each word you solve.",
Expand Down
1 change: 0 additions & 1 deletion lib/project_details/link/project_details_links.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ class ProjectDetailsLinks {
static const googleIO = 'https://io.google/2024';
static const privacyPolicy = 'https://policies.google.com/privacy';
static const termsOfService = 'https://policies.google.com/terms';
static const faqs = 'https://flutter.dev/crossword';
static const claimBadge =
'https://developers.google.com/profile/badges/events/io/2024/crossword';
static const googleAI = 'https://ai.google.dev/';
Expand Down
22 changes: 0 additions & 22 deletions test/drawer/view/crossword_drawer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -260,27 +260,5 @@ void main() {
);
},
);

testWidgets(
'FAQs is tapped',
(tester) async {
await tester.pumpApp(CrosswordDrawer());
await tester.dragUntilVisible(
find.text('FAQs'),
find.byType(CrosswordDrawer),
Offset(0, -50),
);
await tester.pumpAndSettle();
await tester.tap(find.text('FAQs'));
await tester.pumpAndSettle();

verify(
() => urlLauncher.launchUrl(
ProjectDetailsLinks.faqs,
any(),
),
);
},
);
});
}

0 comments on commit 7f2f05e

Please sign in to comment.