Skip to content
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

Table contains irregular row lengths. #482

Closed
lucascardo12 opened this issue Jan 4, 2021 · 1 comment
Closed

Table contains irregular row lengths. #482

lucascardo12 opened this issue Jan 4, 2021 · 1 comment

Comments

@lucascardo12
Copy link

When I execute the HTML below:

Carta Exclusiva do Anfitrião

Anfitrião: Lin Huang
Género: Masculino
Idade: 15
Força de Combate: Nenhuma (Limite de avaliação excedido).
Habilidade: Nenhuma (Habilidades Básicas Dominadas – Além do alcance da avaliação).
Autoridade de Convocação: Ativada
Número de Invocações Disponível: Uma
Observação: Você é tão fraco!

The class throw this error:

Restarted application in 834ms.

════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building HtmlParser(dirty, dependencies: [_LocalizationsScope-[GlobalKey#8b5de], Directionality, _InheritedTheme, MediaQuery]):
Table contains irregular row lengths.

Every TableRow in a Table must have the same number of children, so that every cell is filled. Otherwise, the table will contain holes.
The relevant error-causing widget was
Html
package:light_view/pages/viewNovel-page.dart
When the exception was thrown, this was the stack
#0 new Table.
package:flutter/…/widgets/table.dart
#1 new Table
package:flutter/…/widgets/table.dart
#2 TableLayoutElement.toWidget
package:flutter_html/src/layout_element.dart
#3 HtmlParser.parseTree
package:flutter_html/html_parser.dart
#4 HtmlParser.parseTree.
package:flutter_html/html_parser.dart
...
════════════════════════════════════════════════════════════════════════════════
Reloaded 0 libraries in 2.090ms.

════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building HtmlParser(dirty, dependencies: [_LocalizationsScope-[GlobalKey#8b5de], Directionality, _InheritedTheme, MediaQuery]):
Table contains irregular row lengths.

Every TableRow in a Table must have the same number of children, so that every cell is filled. Otherwise, the table will contain holes.
The relevant error-causing widget was
Html
package:light_view/pages/viewNovel-page.dart
When the exception was thrown, this was the stack
#0 new Table.
package:flutter/…/widgets/table.dart
#1 new Table
package:flutter/…/widgets/table.dart
#2 TableLayoutElement.toWidget
package:flutter_html/src/layout_element.dart
#3 HtmlParser.parseTree
package:flutter_html/html_parser.dart
#4 HtmlParser.parseTree.
package:flutter_html/html_parser.dart
...
════════════════════════════════════════════════════════════════════════════════
Reloaded 3 of 858 libraries in 2.275ms.
Reloaded 0 libraries in 2.090ms.

@erickok
Copy link
Collaborator

erickok commented Jan 4, 2021

Duplicate of #242

@erickok erickok closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants