Skip to content
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

feat: Add reset button #18

Merged
merged 3 commits into from
Jul 5, 2024
Merged

feat: Add reset button #18

merged 3 commits into from
Jul 5, 2024

Conversation

Adaendra
Copy link

📖 Description

Add a reset button to make it easier for the users to reset the current customized avatar.

⁉️ Related Issues

closes: #15

🖼️ Screenshots:

What the screenshot/video is presenting
2024-06-30.11-15-09.mp4

🧪 How to test the change?

  • Setup a customizer with the reset button
  • Update the avatar without saving
  • Click on the reset button

☑️ Checklist before requesting a review

Please describe the checks you performed to verify your changes. Provide instructions so we can reproduce any specific checks to make sure things are working.

Tick the checkboxes to confirm if the checks were successful or not. (All that apply)

  • I have added a label corresponding to the type of change I've made (enhancement, documentation, CI...)
  • I can run flutter run at the example project and it works without any issues.
  • I have performed a self-review of my code.
  • I have tested my changes on Web
  • I have tested my changes on Android
  • I have tested my changes on iOS
  • My changes generate no new warnings in the IDE
  • I have added/updated tests.
  • Running flutter analyze completes with "No issues found!"
  • I have made corresponding changes to the documentation and/or comments
  • I have updated the ./CHANGELOG.md

@Adaendra Adaendra added the enhancement New feature or request label Jun 30, 2024
@Adaendra Adaendra requested a review from apomalyn June 30, 2024 15:16
@Adaendra Adaendra self-assigned this Jun 30, 2024
Copy link

Coverage after merging issue_15 into main will be

45.10%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
lib/src/customizer
   avatar_maker_customizer.dart0%100%100%0%101, 104–105, 108–109, 114, 116–118, 120–122, 131–132, 134–135, 137–138, 141, 144, 146–147, 149–157, 51, 58–59, 61–62, 76, 78, 80–83, 85–88, 93–94, 96–97
   avatar_maker_reset_widget.dart93.33%100%100%93.33%70

@Adaendra Adaendra mentioned this pull request Jun 30, 2024
11 tasks
README.md Outdated Show resolved Hide resolved
return InkWell(
onTap: () async {
avatarMakerController.restoreState();
if (onTap != null) onTap!();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (onTap != null) onTap!();
onTap?.call();

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more of a suggestion, depending on wether we use the same lint rules as Kana to kanji the linter will ask for it

lib/src/customizer/avatar_maker_reset_widget.dart Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jul 1, 2024

Coverage after merging issue_15 into main will be

45.10%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
lib/src/customizer
   avatar_maker_customizer.dart0%100%100%0%101, 104–105, 108–109, 114, 116–118, 120–122, 131–132, 134–135, 137–138, 141, 144, 146–147, 149–157, 51, 58–59, 61–62, 76, 78, 80–83, 85–88, 93–94, 96–97
   avatar_maker_reset_widget.dart93.33%100%100%93.33%70

Adaendra and others added 3 commits July 1, 2024 14:11
Co-authored-by: Xavier Chrétien <chretienxavier42@gmail.com>
Co-authored-by: Xavier Chrétien <chretienxavier42@gmail.com>
Copy link

github-actions bot commented Jul 1, 2024

Coverage after merging issue_15 into main will be

45.10%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
lib/src/customizer
   avatar_maker_customizer.dart0%100%100%0%101, 104–105, 108–109, 114, 116–118, 120–122, 131–132, 134–135, 137–138, 141, 144, 146–147, 149–157, 51, 58–59, 61–62, 76, 78, 80–83, 85–88, 93–94, 96–97
   avatar_maker_reset_widget.dart93.33%100%100%93.33%70

return InkWell(
onTap: () async {
avatarMakerController.restoreState();
if (onTap != null) onTap!();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more of a suggestion, depending on wether we use the same lint rules as Kana to kanji the linter will ask for it

@Adaendra Adaendra merged commit 85afad8 into main Jul 5, 2024
1 check passed
@Adaendra Adaendra deleted the issue_15 branch July 5, 2024 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a reset button
2 participants