-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display selected answer and status #80
base: master
Are you sure you want to change the base?
Display selected answer and status #80
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Boom! Your pull request just flew into the Quiz-Genius HQ. High fives all around! Our team of tech wizards will check it out and get back to you faster than you can say 'code ninja!' Thanks for leveling up the project!
I have resolved the merge conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error in the GitHub Actions job is due to the dart run dart_style:format --dry-run --set-exit-if-changed .
command. The command failed because the code is not properly formatted according to the Dart style guidelines, resulting in a non-zero exit code.
The failure logs indicate that the job failed due to the following error:
dart run dart_style:format --dry-run --set-exit-if-changed .
lib/pages/quiz_page.dart
##[error]Process completed with exit code 1.
This suggests that the Dart formatter found issues in the file lib/pages/quiz_page.dart
.
Next steps:
- Check the
lib/pages/quiz_page.dart
file for formatting issues. - Run `dart format lib/pages/quizTo fix this error:
- Run
dart run dart_style:format .
locally to format all the Dart files. - Commit the changes and push them to the repository.
_page.dart` locally to fix any formatting issues.
This should resolve the formatting issues and allow the GitHub Actions job to complete successfully.3. Commit the changes and push them to the repository.
This should resolve the formatting-related error and allow the CI job to pass successfully.
Done! Please check now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pull request #80 titled "Display selected answer and status," enhances the quiz page by showing the answer selected by the user for each question along with its correctness status. This PR fixes issue #77 and includes 3 commits with a total of 52 additions and 1 deletion across 1 file. The PR is open and has been tested to follow Flutter style guidelines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error in the GitHub Actions job stems from issues in two files:
-
lib/pages/quiz_page.dart
:- Deprecation warnings for 'ButtonBar'.
- These can be resolved by replacing 'ButtonBar' with 'OverflowBar'.
-
lib/utils/profile_image_service.dart
:- Error: "Target of URI doesn't exist: 'package:flutter/material.dart '"
- Error: Undefined name 'Colors'
Issues and Fixes:
-
Deprecation Warnings:
- Replace
ButtonBar
withOverflowBar
inlib/pages/quiz_page.dart
.
- Replace
-
URI and Undefined Identifiers:
- Correct the import statement in
lib/utils/profile_image_service.dart
toimport 'package:flutter/material.dart';
. - Ensure
Colors
is correctly imported and used.
- Correct the import statement in
Next Steps:
- Correct the import statement and replace deprecated widgets.
- Test the changes by re-running the job to ensure the issues are resolved.
Would you like to proceed with making these changes?
yes I am working on these changes. |
I have fixed the issues and tested the code. I have a doubt regarding this though. |
we have conflicts in quiz_page.dart |
also in video is not looks good according UX, so change it to snakebar or anything else |
The conflict in your pull request is related to a build failure due to an outdated Java version. Here are the steps to resolve it:
Here's a guide on how to change the Java version and update the Gradle plugin application method: Updating Java Version
Updating Gradle Plugin Application MethodIn your plugins {
id 'com.android.application'
id 'kotlin-android' // If you are using Kotlin
// Add other plugins as needed
} After making these changes, try running the build again. If you need further assistance, feel free to ask. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
https://github.com/user-attachments/assets/c290dea8-e925-4423-8449-5049f1dd5aae I have resolved conflicts as well. |
Thank you @KirolosMFahem for these instructions! But i am using Java 21 version which I believe is compatible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of Pull Request
Files Changed:
lib/pages/home_page.dart
lib/pages/quiz_page.dart
lib/utils/extensions.dart
What Got Fixed:
- Removed unnecessary whitespace in
home_page.dart
. - Fixed incorrect method property references from
MaterialStateProperty
toWidgetStateProperty
inquiz_page.dart
.
What Got Added:
- Added a new import statement for
velocity_x
inhome_page.dart
. - Added comments and a new method
_showSnackbar
inquiz_page.dart
for better user feedback. - Added new lists
_userAnswer
and_correctAnswer
to track user interactions and correct answers inquiz_page.dart
.
Considerations:
- Ensure that the changes to button styles in
quiz_page.dart
are correct and do not cause visual regressions. - Verify that the new methods and properties added in
quiz_page.dart
work as expected during user interactions.
Summary of Changes and Related Files
1. lib/pages/home_page.dart
:
- Added import for
velocity_x
. - Removed unnecessary whitespace.
2. lib/pages/quiz_page.dart
:
- Added lists
_userAnswer
and_correctAnswer
. - Added
_showSnackbar
method to provide feedback on user answers. - Replaced
ButtonBar
withOverflowBar
. - Fixed button style property references.
3. lib/utils/extensions.dart
:
- Formatted
capitalizeFirstOfEach
method for better readability.
For more details, you can view the files changed in this PR.
I will look at this brfore EOD today. |
@aashika-j18 please resolve the conflicts so we do the final test and merge |
This PR enhances the quiz page by displaying the answer selected by the user for each question along with the status of whether it's right or wrong.
Fixes #77
Screen.Recording.2024-10-11.155927.mp4
I have tested the code and followed flutter style guidelines.
Please review and let me know if any further changes are required!
@KirolosMFahem @yagnik2411