Skip to content

Commit

Permalink
release v0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshj01 committed Jul 31, 2023
1 parent e651f1d commit a8a6f33
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 0.6.1+23 July 30, 2023
### 0.6.1+24 July 30, 2023

- Adds support for push notifications

Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Vocabhub 0.6.0
# Vocabhub 0.6.1

Supercharge your vocabulary with our comprehensive app designed to help you excel in English! Whether you're preparing for the GRE or simply aiming to enhance your language skills, this app is your ultimate companion. Unlock the potential of over 800 meticulously curated GRE words, carefully selected to bolster your word power.

Expand Down Expand Up @@ -76,7 +76,9 @@ command to run the app from the command line, or If you want to use the launch.j
"--dart-define=SUPABASE_PROJECT_URL=<your project url here>",
"--dart-define=SUPABASE_API_KEY=<your api key here>",
"--dart-define=SUPABASE_REDIRECT_URL=<your redirect url here>",
--dart-define=FIREBASE_VAPID_KEY=<vapid key from web push certificate in firebase>
"--dart-define=FIREBASE_VAPID_KEY=<vapid key from web push certificate in firebase>"
"--dart-define=ADMIN_EMAIL=<youremail>",
"--dart-define=FCM_SERVER_KEY=<Firebase server key>"
]
}
```
Expand All @@ -91,7 +93,7 @@ _Run the project using the command_

```
flutter build apk --dart-define=SUPABASE_PROJECT_URL=<your project url here> --dart-define=SUPABASE_API_KEY=<your api key here> --dart-define=SUPABASE_REDIRECT_URL=<your redirect url here>
--dart-define=FIREBASE_VAPID_KEY=<vapid key from web push certificate in firebase>
--dart-define=FIREBASE_VAPID_KEY=<vapid key from web push certificate in firebase> --dart-define=ADMIN_EMAIL=<youremail> --dart-define=FCM_SERVER_KEY=<Firebase server key>
```

The apk will be generated in the `build/app/outputs/flutter-apk/app-release.apk` folder.
Expand Down
10 changes: 6 additions & 4 deletions lib/pages/addword.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ class _AddWordFormState extends ConsumerState<AddWordForm> {
}

void _populateData({Word? word}) {
editedWord = widget.word!.deepCopy();
if (word != null) {
editedWord = word.deepCopy();
} else {
editedWord = widget.word!.deepCopy();
}
wordController.text = word!.word;
meaningController.text = word.meaning;
}
Expand Down Expand Up @@ -351,9 +355,7 @@ class _AddWordFormState extends ConsumerState<AddWordForm> {
removeFocus(context);
Word selectedDraft = await Navigate.push(context, Drafts(),
transitionType: TransitionType.rtl);
if (selectedDraft != null) {
_populateData(word: selectedDraft);
}
_populateData(word: selectedDraft);
},
icon: Icon(Icons.drafts)),
],
Expand Down
6 changes: 0 additions & 6 deletions lib/services/services/pushnotification_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,6 @@ class PushNotificationService extends ServiceBase with ChangeNotifier {
FirebaseMessaging.onMessage.listen((RemoteMessage message) {
showFlutterNotification(message);
});
// FirebaseMessaging.onMessageOpenedApp.listen((RemoteMessage message) {
// // navigate using key
// final data = message.data;
// print(data);
// appKey.currentState!.pushNamed(Notifications.route);
// });
}
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: vocabhub
description: An App to help you build vocabulary.
publish_to: "none"
version: 0.6.0+23
version: 0.6.1+24

environment:
sdk: ">=2.17.0 <3.0.0"
Expand Down

0 comments on commit a8a6f33

Please sign in to comment.