@@ -26,38 +26,54 @@ which reflects how strongly the Flutter team recommends it.
2626 fundamentally clash with your current approach.
2727* ** Recommend** : This practice will likely improve your app.
2828* ** Conditional** : This practice can improve your app in certain circumstances.
29- <br /><br />
3029
3130{% for section in architectureRecommendations %}
32- <h2 >{{section.category}}</h2 >
33- <p >{{section.description}}</p >
34- <table class =" table table-striped " style =" border-bottom :1px #DADCE0 solid " >
35- <tr class="tr-main-head">
36- <th style="width: 30%">Recommendation</th>
37- <th style="width: 70%">Description</th>
38- </tr>
39- {% for rec in section.recommendations %}
40- <tr>
41- <td>
42- <p>{{rec.recommendation}}</p>
43- {% if rec.confidence == "strong" %}
44- <div class="rrec-pill success">Strongly recommend</div>
45- {% elsif rec.confidence == "recommend" %}
46- <div class="rrec-pill info">Recommend</div>
47- {% else %}
48- <div class="rrec-pill">Conditional</div>
49- {% endif %}
50- </td>
51- <td>
52- {{rec.description}}
53- <br />
54- {{rec.confidence-description}}</td>
55- </tr> {% endfor %}
31+ ## {{section.category}}
32+
33+ {{section.description}}
34+
35+ {% if section.recommendations.size > 0 %}
36+
37+ <table class =" table table-striped " style =" border-bottom :1px #DADCE0 solid ;" >
38+ <thead >
39+ <tr >
40+ <th style="width: 30%;">Recommendation</th>
41+ <th style="width: 70%;">Description</th>
42+ </tr >
43+ </thead >
44+ <tbody >
45+ {% for rec in section.recommendations %}
46+ <tr >
47+ <td >
48+
49+ {{rec.recommendation}}
50+
51+ {% if rec.confidence == "strong" %}
52+ <div class =" rrec-pill success " >Strongly recommend</div >
53+ {% elsif rec.confidence == "recommend" %}
54+ <div class =" rrec-pill info " >Recommend</div >
55+ {% else %}
56+ <div class =" rrec-pill " >Conditional</div >
57+ {% endif %}
58+
59+ </td >
60+ <td >
61+
62+ {{rec.description}}
63+ {{rec.confidence-description}}
64+
65+ </td >
66+ </tr >
67+ {% endfor %}
68+ </tbody >
5669</table >
57- <br />
70+
71+ {% endif %}
5872{% endfor %}
5973
60- ## Recommended resources
74+ <a id =" recommended-resources " aria-hidden =" true " ></a >
75+
76+ ## Recommended resources {:#resources}
6177
6278* Code and templates
6379 * [ Compass app source code] [ ] -
0 commit comments