Closed nelsonic closed 1 year ago
@nelsonic So first I should finish the Flutter TDD tutorial course, then move on to this issue?
Yeah, finishing the Flutter Clean Architecture and TDD course notes is essential. #15 📝 https://github.com/dwyl/learn-flutter/blob/master/Flutter_TDD_Architecture_Course_notes.md At present the notes only go up to video 3. There are 14 videos in the series. 📺
I've managed to make some progress. I just need to do the documentation.
@miguelmartins17 great that you are making progress! 🎉
Please remember to git add . && git commit -m 'describe your progress' && git push
so that you are recording your progress on a regular basis.
(ideally multiple times per day whenever you reach a checkpoint like a new section in the instructions)
https://github.com/dwyl/flutter-counter-example
The key to mastery is consistency. Push code each time you make an update.
The faster you make progress in any/each task the faster you will reach your goals.
If you are facing obstacles, please comment on the issue so we can help. 👍
@nelsonic I'm still trying to figure out how to add a function to the button. I found it on StackOverflow. I'll try to use it.
https://stackoverflow.com/questions/51398531/how-to-give-onpressed-a-method-in-custom-button-flutter
Today I tried to run the application but when I tried to run it the following error appeared. I already google it but I didn't get any solution.
@nelsonic These were the links where I tried to solve this problem.
@nelsonic please get into the habit of pasting the text
of the error into an issue screenshots are good for context but they are useless for allowing anyone else
to pick up the issue or find the eventual solution via Googling.
This is the error written for the next one, I know I have to write.
Resource fork, Finder information, or similar detritus not allowed.
Command CodeSign failed with a nonzero exit code.
note: Using new build system.
note: Planning build
note: Constructing build description
Warning: capabilities for signing and capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this select a development team in the Runner editor.
I am currently following this post on StackOverflow.
This post talks about the error I have in Xcode build but it is still outdated in relation to the version.
https://www.twilio.com/blog/2018/07/how-to-test-your-ios-application-on-a-real-device.html
@nelsonic I was thinking that maybe the error that appears in Xcode build might be because it was outdated and then I saw that it had an update. Every time I try to update, I get an email other than mine.
How can I change the email address on the App Store so I can update Xcode? Is there another way to do this update other than from the App Store?
@miguelmartins17 the user on the Mac you are using was created specifically for you. You should not need to sign into my iCloud account unless you are using a different user ... you are the "admin" on the machine so you can create a new user e.g "M2" and you should be able to start from scratch. It's actually a good test of the Learn Flutter installation instructions. As for downloading XCode, sadly it's only possible through the App Store.
I am currently following this video:
Closing in favour of: https://github.com/dwyl/learn-flutter/issues/65
As a person wanting to build reliable & maintainable cross-platform native Apps in Flutter, I want to learn the best practices of TDD from the start by following a great beginners example so that I cultivate good habits for high quality tests and code.
We need to create a basic but complete step-by-step example of doing TDD in Flutter with the complete code on GitHub (not just "snippets" or gists) so that a beginner can follow it from start to finish in less than an hour and understand exactly what it takes to do TDD and how to do it.
Todo/Tasks
/tdd-example/README.md
The example must:
[x] Take the learner through building a basic app from scratch e.g. calculator or counter
[x] create a new repository https://github.com/dwyl/flutter-counter-example
[x] create a new flutter project
before
you add any tests/code.[x] inside the
/flutter-counter-example
createREADME.md
file e.g:/flutter-counter-example/README.md
git commit
the code at each stage so that the learner has a complete working example.[x] 3. Finally, in the https://github.com/dwyl/learn-flutter#flutter-application-test which should be renamed just "Testing" you should link to the
tdd-example
so that people can follow it to understand the basics of TDD/Testing in flutter.Writing this example does not need to take more than a couple of days of focussed effort. But it will be a superb resource for others.