Skip to content

Commit

Permalink
Risolto problema piatti
Browse files Browse the repository at this point in the history
Veniva aggiunto un piatto in più con tutti gli ingredienti
  • Loading branch information
michelevantaggi02 committed Nov 29, 2022
1 parent c9c2c83 commit c8115d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,11 @@ class _MyHomePageState extends State<MyHomePage>

contenuto
.querySelectorAll(
"div[class^='w3-text'], div[class*='w3-text'] > div.node--type-ricetta")
"div[class^='w3-text'] > div.node--type-ricetta, div[class*='w3-text'] > div.node--type-ricetta")
.forEach((ricetta) {
Map piatto = {};
piatto["nome"] = ricetta.querySelector("h4")?.text;
//print(ricetta.innerHtml);
piatto["ingredienti"] = [];
ricetta.querySelectorAll("h6").forEach((h6) {
piatto["ingredienti"].add(h6.text.replaceAll(" X", "").trim());
Expand Down

0 comments on commit c8115d2

Please sign in to comment.