-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Update widget catalog to show Material 3 widgets #8574
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
Merged
Merged
Changes from 25 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
22b5d41
added images and material 3 page
esouthren 54b65f6
Add card and buttons widgets
esouthren f3e1d6f
add containement widgets
esouthren 5631433
sort file
esouthren 6a8fc19
add navigation widgets
esouthren acc6d9b
add selection widgets
esouthren 3928ed5
add remaining widgets
esouthren 8f35d3e
update snackbar image
esouthren a90a624
added material 3 image container
esouthren 6c41f90
added toggle switch
esouthren f4d4d25
added icon toggle
esouthren ec5a499
sassy clean
esouthren 69ffd84
added card colors in json
esouthren a98ec66
update toggle position
esouthren 160533f
update css
esouthren f21305c
update hover duration and toggle icon boundary
esouthren e8d001b
update image transparencies
esouthren 3b1ed1d
remove light/dark toggle
esouthren 0deaea6
add other hover images
esouthren d4b98a8
update formatting
esouthren 13e0075
update copy
esouthren e2acb2d
code tidy
esouthren a3fcb39
update listTile link
esouthren e762d7c
sort json order and whitespace
esouthren eac578f
comment responses
esouthren e19107e
Added M2 page notice
esouthren 76eb19f
copy updates
esouthren 897e064
remove m2 card from widgets page
esouthren 66e1757
comment responses
esouthren 644d151
fix other catalog path URLs
esouthren 49f85e6
comment updates
esouthren 2e9d8d9
update buttons Url
esouthren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| {% for section in site.data.catalog.index %} | ||
| {% if section.name == include.category %} | ||
| {% assign category = section %} | ||
| {% break %} | ||
| {% endif %} | ||
| {% endfor %} | ||
|
|
||
| <div class="catalog"> | ||
| <div class="category-description"> | ||
| <p>{{category.description}}</p> | ||
| </div> | ||
| {% if category.subcategories and category.subcategories.size != 0 -%} | ||
| <ul> | ||
| {% for sub in category.subcategories -%} | ||
| <li><a href="#{{sub.name}}">{{sub.name}}</a></li> | ||
| {% endfor -%} | ||
| </ul> | ||
| {% endif -%} | ||
|
|
||
| <p> | ||
| {{ category.pagecontent }} | ||
| </p> | ||
|
|
||
| {% assign components = site.data.catalog.widgets | where_exp:"comp","comp.categories contains include.category" -%} | ||
|
|
||
| {% if category.subcategories and category.subcategories.size != 0 -%} | ||
| {% for sub in category.subcategories -%} | ||
| {% assign components = site.data.catalog.widgets | where_exp:"comp","comp.subcategories contains sub.name" -%} | ||
| {% if components.size != 0 -%} | ||
| <h2 id="{{sub.name}}">{{sub.name}}</h2> | ||
| <div class="card-deck card-deck--responsive"> | ||
| {% for comp in components -%} | ||
| <div class="card"> | ||
| <a href="{{comp.link}}"> | ||
| <div class="card-image-holder-material-3" style="--bg-color: {{sub.color}}"> | ||
| {{ comp.image }} | ||
| <div class="card-image-material-3-hover"> | ||
| {{ comp.hoverimage }} | ||
| </div> | ||
| </div> | ||
| </a> | ||
| <div class="card-body"> | ||
| <a href="{{comp.link}}"><header class="card-title card-title-material-3">{{comp.name}}</header></a> | ||
| <p class="card-text">{{ comp.description | truncatewords: 25 }}</p> | ||
| </div> | ||
| </div> | ||
| {% endfor -%} | ||
| </div> | ||
| {% endif -%} | ||
| {% endfor -%} | ||
| {% endif -%} | ||
|
|
||
| <p>See more widgets in the <a href="{{site.url}}/development/ui/widgets">widget catalog</a>.</p> | ||
esouthren marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </div> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33 KB
src/assets/images/docs/widget-catalog/material-3-floating-action-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.7 KB
src/assets/images/docs/widget-catalog/material-3-navigation-drawer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.7 KB
src/assets/images/docs/widget-catalog/material-3-progress-indicator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.1 KB
src/assets/images/docs/widget-catalog/material-3-segmented-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| --- | ||
| title: Material Components widgets | ||
| title: Material 2 Components widgets | ||
| short-title: Material | ||
| description: > | ||
| A catalog of Flutter's widgets implementing the Material design guidelines. | ||
| A catalog of Flutter's widgets implementing the Material 2 design guidelines. | ||
| --- | ||
|
|
||
| {% include docs/catalogpage.html category="Material Components" %} | ||
| {% include docs/catalogpage.html category="Material 2 Components" %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| title: Material 3 Components widgets | ||
esouthren marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| short-title: Material 3 | ||
| description: > | ||
| A catalog of Flutter's widgets implementing Material 3 design guidelines. | ||
| --- | ||
|
|
||
| {% include docs/catalogpage-material-3.html category="Material 3 Components" %} | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.