Yusufathi / flutter_ecommerce

A simple open source flutter ecommerce
MIT License
0 stars 0 forks source link

Sweep: Add contact us form page #2

Open Yusufathi opened 12 months ago

Yusufathi commented 12 months ago
Checklist - [X] `lib/screens/contact_us_screen.dart` ✅ Commit [`815cae2`](https://github.com/Yusufathi/flutter_ecommerce/commit/815cae27cb40add934fd6113d6aa8133fa1b7611)
• Create a new stateful widget named "ContactUsScreen". • Add a Scaffold widget with an AppBar widget for the page title. • Add a Form widget with TextFormFields for the user's name, email, and message. • Add a RaisedButton widget for the "Submit" button. The onPressed function of this button should print the form data for now.
Sandbox Execution Logs
trunk init 1/3 ✅
⡿ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
⣷ Downloading Trunk 1.15.0...
⣯ Downloading Trunk 1.15.0...
⣟ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
✔ Downloading Trunk 1.15.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 10 linters were enabled (.trunk/trunk.yaml)

  checkov 2.4.9 (4 json, 3 yaml files)
  git-diff-check (141 files)
  ktlint 1.0.0 (1 kotlin file)
  markdownlint 0.36.0 (2 markdown files) (created .markdownlint.yaml)
  osv-scanner 1.3.6 (1 lockfile file)
  oxipng 8.0.0 (35 png files)
  prettier 3.0.3 (1 html, 4 json, 2 markdown, 3 yaml files)
  trivy 0.45.0 (1 lockfile, 3 yaml files)
  trufflehog 3.55.1 (141 files)
  yamllint 1.32.0 (3 yaml files) (created .yamllint.yaml)

Next Steps

 1. Read documentation
    Our documentation can be found at https://docs.trunk.io

 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk check lib/screens/contact_us_screen.dart 2/3 ✅

Checked 1 file
✔ No issues
trunk fmt lib/screens/contact_us_screen.dart 3/3 ✅

Found no applicable linters for the requested path
- [X] `lib/main.dart` ✅ Commit [`8304a74`](https://github.com/Yusufathi/flutter_ecommerce/commit/8304a7483465d55d492a309479c05325f0f520b2)
• Import the contact_us_screen.dart file. • Add a new route for the "ContactUsScreen" in the MaterialApp widget's routes property.
Sandbox Execution Logs
trunk init 1/3 ✅
⡿ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
⣷ Downloading Trunk 1.15.0...
⣯ Downloading Trunk 1.15.0...
⣟ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
⣷ Downloading Trunk 1.15.0...
✔ Downloading Trunk 1.15.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 10 linters were enabled (.trunk/trunk.yaml)

  checkov 2.4.9 (4 json, 3 yaml files)
  git-diff-check (140 files)
  ktlint 1.0.0 (1 kotlin file)
  markdownlint 0.36.0 (2 markdown files) (created .markdownlint.yaml)
  osv-scanner 1.3.6 (1 lockfile file)
  oxipng 8.0.0 (35 png files)
  prettier 3.0.3 (1 html, 4 json, 2 markdown, 3 yaml files)
  trivy 0.45.0 (1 lockfile, 3 yaml files)
  trufflehog 3.55.1 (140 files)
  yamllint 1.32.0 (3 yaml files) (created .yamllint.yaml)

Next Steps

 1. Read documentation
    Our documentation can be found at https://docs.trunk.io

 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk check lib/main.dart 2/3 ✅

Checked 1 file
✔ No issues
trunk fmt lib/main.dart 3/3 ✅

Found no applicable linters for the requested path
- [X] `lib/screens/home_screen.dart` ✅ Commit [`8304a74`](https://github.com/Yusufathi/flutter_ecommerce/commit/8304a7483465d55d492a309479c05325f0f520b2)
• Import the contact_us_screen.dart file. • Add a RaisedButton widget that navigates to the "ContactUsScreen" when clicked.
Sandbox Execution Logs
trunk init 1/3 ✅
⡿ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
⣷ Downloading Trunk 1.15.0...
⣯ Downloading Trunk 1.15.0...
⣟ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
⣷ Downloading Trunk 1.15.0...
✔ Downloading Trunk 1.15.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 10 linters were enabled (.trunk/trunk.yaml)

  checkov 2.4.9 (4 json, 3 yaml files)
  git-diff-check (140 files)
  ktlint 1.0.0 (1 kotlin file)
  markdownlint 0.36.0 (2 markdown files) (created .markdownlint.yaml)
  osv-scanner 1.3.6 (1 lockfile file)
  oxipng 8.0.0 (35 png files)
  prettier 3.0.3 (1 html, 4 json, 2 markdown, 3 yaml files)
  trivy 0.45.0 (1 lockfile, 3 yaml files)
  trufflehog 3.55.1 (140 files)
  yamllint 1.32.0 (3 yaml files) (created .yamllint.yaml)

Next Steps

 1. Read documentation
    Our documentation can be found at https://docs.trunk.io

 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk check lib/screens/home_screen.dart 2/3 ✅

Checked 1 file
✔ No issues
trunk fmt lib/screens/home_screen.dart 3/3 ✅

Found no applicable linters for the requested path
sweep-ai[bot] commented 12 months ago

Here's the PR! https://github.com/Yusufathi/flutter_ecommerce/pull/3.

⚡ Sweep Free Trial: I used GPT-4 to create this ticket. You have 4 GPT-4 tickets left for the month and 1 for the day. For more GPT-4 tickets, visit our payment portal. To retrigger Sweep, edit the issue.


Step 1: 📍 Planning

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/Yusufathi/flutter_ecommerce/blob/113a47a9f6108933dacf7214011ccf6eefb490f6/windows/runner/Runner.rc#L1-L95 https://github.com/Yusufathi/flutter_ecommerce/blob/113a47a9f6108933dacf7214011ccf6eefb490f6/ios/Runner/Base.lproj/Main.storyboard#L1-L25

Step 2: ⌨️ Coding

trunk init 1/3 ✅
⡿ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
⣷ Downloading Trunk 1.15.0...
⣯ Downloading Trunk 1.15.0...
⣟ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
✔ Downloading Trunk 1.15.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 10 linters were enabled (.trunk/trunk.yaml)

  checkov 2.4.9 (4 json, 3 yaml files)
  git-diff-check (141 files)
  ktlint 1.0.0 (1 kotlin file)
  markdownlint 0.36.0 (2 markdown files) (created .markdownlint.yaml)
  osv-scanner 1.3.6 (1 lockfile file)
  oxipng 8.0.0 (35 png files)
  prettier 3.0.3 (1 html, 4 json, 2 markdown, 3 yaml files)
  trivy 0.45.0 (1 lockfile, 3 yaml files)
  trufflehog 3.55.1 (141 files)
  yamllint 1.32.0 (3 yaml files) (created .yamllint.yaml)

Next Steps

 1. Read documentation
    Our documentation can be found at https://docs.trunk.io

 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk check lib/screens/contact_us_screen.dart 2/3 ✅

Checked 1 file
✔ No issues
trunk fmt lib/screens/contact_us_screen.dart 3/3 ✅

Found no applicable linters for the requested path

trunk init 1/3 ✅
⡿ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
⣷ Downloading Trunk 1.15.0...
⣯ Downloading Trunk 1.15.0...
⣟ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
⣷ Downloading Trunk 1.15.0...
✔ Downloading Trunk 1.15.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 10 linters were enabled (.trunk/trunk.yaml)

  checkov 2.4.9 (4 json, 3 yaml files)
  git-diff-check (140 files)
  ktlint 1.0.0 (1 kotlin file)
  markdownlint 0.36.0 (2 markdown files) (created .markdownlint.yaml)
  osv-scanner 1.3.6 (1 lockfile file)
  oxipng 8.0.0 (35 png files)
  prettier 3.0.3 (1 html, 4 json, 2 markdown, 3 yaml files)
  trivy 0.45.0 (1 lockfile, 3 yaml files)
  trufflehog 3.55.1 (140 files)
  yamllint 1.32.0 (3 yaml files) (created .yamllint.yaml)

Next Steps

 1. Read documentation
    Our documentation can be found at https://docs.trunk.io

 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk check lib/main.dart 2/3 ✅

Checked 1 file
✔ No issues
trunk fmt lib/main.dart 3/3 ✅

Found no applicable linters for the requested path

trunk init 1/3 ✅
⡿ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
⣷ Downloading Trunk 1.15.0...
⣯ Downloading Trunk 1.15.0...
⣟ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
⣷ Downloading Trunk 1.15.0...
✔ Downloading Trunk 1.15.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 10 linters were enabled (.trunk/trunk.yaml)

  checkov 2.4.9 (4 json, 3 yaml files)
  git-diff-check (140 files)
  ktlint 1.0.0 (1 kotlin file)
  markdownlint 0.36.0 (2 markdown files) (created .markdownlint.yaml)
  osv-scanner 1.3.6 (1 lockfile file)
  oxipng 8.0.0 (35 png files)
  prettier 3.0.3 (1 html, 4 json, 2 markdown, 3 yaml files)
  trivy 0.45.0 (1 lockfile, 3 yaml files)
  trufflehog 3.55.1 (140 files)
  yamllint 1.32.0 (3 yaml files) (created .yamllint.yaml)

Next Steps

 1. Read documentation
    Our documentation can be found at https://docs.trunk.io

 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk check lib/screens/home_screen.dart 2/3 ✅

Checked 1 file
✔ No issues
trunk fmt lib/screens/home_screen.dart 3/3 ✅

Found no applicable linters for the requested path


Step 3: 🔁 Code Review

Here are my self-reviews of my changes at sweep/contact-us-form.

I finished incorporating these changes.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord