Repository navigation
Migrate flutter counter template to Material 3 #111118
Description
Activity
- addedframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packages
on Sep 7, 2022 @srivats22 Sorry, I don't think your example would be fit for the default template as it has a custom widget(chat bubble), textfield, scrollview, sender-receiver alignment, and msg timestamp.
This is what I think a default template should do or have:
- It should help anyone get easily started on their own projects instead of first deleting lots of code.
- It should be fairly simple just as showing the setState in action through updating a few visual elements.
Tbh I don't think there is a need for an update to the current example as it suits its purpose perfectly without overcomplicating anything for beginners and I don't think it needs to look cool.
Still, maybe adding a theme switcher to play with would be cool and simple.
It should help anyone get easily started on their own projects instead of first deleting lots of code.
Note that we recently added the
--emptyargument toflutter create, which creates a very minimal code setup without the test directory, and without any comments or more than just "hello world". So you shouldn't need to delete a lot of code.@gspencergoog Thanks for pointing that out I didn't know that.
But I think many people are used to Android Studio "File->New->New Flutter Project" and they may continue using that trend (especially beginners) so I think we should still keep that in consideration.
That makes sense, I just realized it might be a bit too much, my bad.
Maybe like a switch for theme change might work.
I added feature requests for both IntelliJ (a.k.a. Android Studio) and VSCode to implement creating an empty project.
Reacted by DeepanshuReacted by DeepanshuThis thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Mar 3, 2023
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fields✅ Done

Once we have enough of the framework migrated to Material 3 (#91605), we should update the default Flutter counter app template to use Material 3 by default. This may require some new design work on the template itself, as currently if we just switch over the existing template we get something like:
Sample code
Which is a pretty bland looking introduction to Flutter.
Out of the box, we want a simple but attractive example. If needed, we could change it to something other than a counter, but it would have to be simple while still showing off hot reload and basic state management.