brianegan / new_flutter_template

Test ideas for a new flutter template
140 stars 23 forks source link

[WIP] First sample app proposal #24

Closed brianegan closed 3 years ago

brianegan commented 3 years ago

We've taken the feedback from the community and we're starting to assemble it into a sample app. Please note, this is a work in progress!

Features

Refinement

Tasks we want to address once we've agreed to the overall features & structure.

brianegan commented 3 years ago

Thanks for taking an early look and giving thoughts on the overall direction!

Definitely some things that are more polished, and other parts are more questionable WIP code in here that needs a clean-up :)

I'll go through all the feedback and make updates on Monday and Tuesday!

brianegan commented 3 years ago

Can we build the functionality in a way that 90% of developers will want to keep it and/or add to it, instead of ripping it out?

On the other hand, I wonder if we really need Item to work. I'd like to see a version of the template where Item/Dummy is only a scaffold, with zero functionality. No plumbing that will need to be ripped out immediately.

This was my gut feeling as well -- the items folder contains lot of code, most of which will be deleted. In my opinion, even handling responsive breakpoints really comes down to the design of the app and it's very hard to put anything general in place.

I'll try a rendition with a much simpler items or dummy folder to see how it goes, keeping in mind the "90%" rule.

brianegan commented 3 years ago

Thanks again for all the feedback! I've published another version of the proposal that is starting to get into a bit more production-ready shape. I'd appreciate any feedback folks have the time to give!

Changes include:

filiph commented 3 years ago

When I checked out the PR just now and ran flutter pub get, I get an error:

/Users/filiph/fvm/versions/stable/bin/flutter --no-color pub get
Resource attribute "@appTitle" was not found. Please ensure that each resource has a corresponding @resource.
Generating synthetic localizations package has failed.
Process finished with exit code 1

Something with i18n? Just thought I'd mention it.

brianegan commented 3 years ago

Ah, interesting -- I haven't run into that error myself, but I've added a @appTitle key/value pair to the arb file just in case.

I'd guess we're running slightly different versions of Flutter :)

filiph commented 3 years ago

I still can't get this to work on stable. The i18n files won't generate. Switching to dev to see if that helps.

brianegan commented 3 years ago

Sorry about that, Filip! Totally my bad -- I'd committed the change and thought I'd pushed it before our meeting, but I mistakenly hadn't. Hopefully work now!

brianegan commented 3 years ago

Thanks again for the feedback, everyone! I'll merge this up and close it out. I've created an official proposal on the Flutter repo if you'd like to follow the conversation further :)

https://github.com/flutter/flutter/pull/76519