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

ch2 code on oreily.com book is wildly different #13

Closed
letto4135 opened this issue Feb 5, 2021 · 1 comment
Closed

ch2 code on oreily.com book is wildly different #13

letto4135 opened this issue Feb 5, 2021 · 1 comment

Comments

@letto4135
Copy link

For one the code in the book does not work.
RenderBox was not laid out: _RenderSingleChildViewport#aa1ea relayoutBoundary=up8 NEEDS-PAINT
At the end of the "completing the ui" step it has you wrap most of the project in a SingleChildScrollView which causes the error.

There is no mention of any of these variables
double sizeX = MediaQuery.of(context).size.width;
double sizeY = MediaQuery.of(context).size.height;
final spacer = Padding(padding: EdgeInsets.only(bottom: sizeY/40));

And Spacer() is used instead of spacer....

How are you going to have the initial commit of the repo be this different from the book? Seems like quite the oversite.

@shubham763
Copy link
Collaborator

Hi @letto4135

The author explained the code lines in the book and some code were missing as you mentioned. The author has explained those code line in later chapters. I'll recommend you to use the GitHub repo's code and refer book for the explanation, for a better result.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants