Stacked-Org / stacked

A Flutter application architecture created from real world scenarios
MIT License
957 stars 255 forks source link

[bug]: app creation do not create android iOS and other code if name contains upper case letter #1081

Open Abhijit-Revamp opened 7 months ago

Abhijit-Revamp commented 7 months ago

Describe the bug

This is not a bug, however, if you can put an error it will be great. I spent 2 hours trying to understand what was happening

using stacked version 1.12.6

if using "web" template then only lib, test and web folders are created if using default template (mobile) then only lib and test folders are created

To reproduce

  1. stacked update
  2. stacked create app myTest
  3. stacked create app myTestWeb -t web

Expected behavior

If the app name contains capital case, give error and exit use regex [a-z0-9_] unless something can be really done

Screenshots

image

Additional Context

No response

FilledStacks commented 7 months ago

We use the flutter command line tool to create the project. Flutter requires the projects to use snake_case for naming, when they implement it for different casing, then stacked will inherit that as well.

A message would definitely be good. I'll keep it on the issues for someone in the open source community to pick it up.