Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/_assets/css/_bootstrap_adjust.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,14 @@ a.card {
padding: bs-spacer(4) 0;
}

.nav-tabs .nav-link.active {
.nav-tabs .nav-link,
.nav-tabs .nav-link:hover {
border: none;
border-bottom: 2px solid $site-color-primary;
border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
border-color: $site-color-primary;
}

@mixin pre-defaults {
Expand Down
2 changes: 1 addition & 1 deletion src/_assets/css/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

.btn {
@include media-breakpoint-up(md) {
margin-left: bs-spacer(4);
margin-right: bs-spacer(4);
}
}

Expand Down
12 changes: 12 additions & 0 deletions src/_data/catalog/widgets.json
Original file line number Diff line number Diff line change
Expand Up @@ -1608,5 +1608,17 @@
],
"link": "https://docs.flutter.io/flutter/widgets/AnimatedWidgetBaseState-class.html",
"image": "<img alt='' src='/images/catalog-widget-placeholder.png'>"
},
{
"name": "DropdownButton",
"description": "A input field to choose an item from a list.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"A input field to choose..." => "An input field for choosing..."

I thought the idea was to add Spinner to this description for Android users?

"categories": [
"Material Components"
],
"subcategories": [
"Input and selections"
],
"link": "https://docs.flutter.io/flutter/widgets/DropdownButton-class.html",
"image": "<img alt='' src='/images/catalog-widget-placeholder.png'>"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a placeholder image?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, we use lots of them.

}
]
20 changes: 15 additions & 5 deletions src/development/ui/widgets-catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,20 @@ platform, and interactive widgets.
In addition to browsing widgets by category,
you can also see all the widgets in the [Flutter widget index](/api-and-reference/widgets).

<div>
{% for section in site.data.catalog.index %}
- ### [{{section.name}}](/api-and-reference/widgets/{{section.id}})
{:.catalog-category-title}

{{section.description}}
{:.card}
{% capture modulo3 %}{{ forloop.index0 | modulo:3 }}{% endcapture %}
{% if modulo3 == '0' %}
<div class="card-deck">
{% endif %}
<a class="card" href="/development/ui/widgets/{{section.id}}">
<div class="card-body">
<header class="card-title">{{section.name}}</header>
<p class="card-text">{{section.description}}</p>
</div>
</a>
{% if modulo3 == '2' or forloop.last %}
</div>
{% endif %}
{% endfor %}
</div>