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 #13

Closed
the-thirteenth-fox opened this issue Apr 23, 2020 · 16 comments
Closed

Table contains irregular row lengths #13

the-thirteenth-fox opened this issue Apr 23, 2020 · 16 comments
Labels
bug Something isn't working

Comments

@the-thirteenth-fox
Copy link

the-thirteenth-fox commented Apr 23, 2020

Caught by this md file:
12.markdown.txt

Log:

Launching lib\main.dart on SM A605FN in debug mode...
√ Built build\app\outputs\apk\debug\app-debug.apk.
D/FlutterActivity(13380): Using the launch theme as normal theme.
D/FlutterActivityAndFragmentDelegate(13380): Setting up FlutterEngine.
D/FlutterActivityAndFragmentDelegate(13380): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.

�[38;5;248m════════ Exception caught by widgets library ═══════════════════════════════════�[39;49m
�[38;5;244mThe following assertion was thrown building FutureBuilder<String>(dirty, dependencies: [_InheritedTheme, _LocalizationsScope-[GlobalKey#b3b0e]], state: _FutureBuilderState<String>#faa7d):�[39;49m
Table contains irregular row lengths.

�[38;5;244mEvery TableRow in a Table must have the same number of children, so that every cell is filled. Otherwise, the table will contain holes.�[39;49m
�[38;5;244mThe relevant error-causing widget was�[39;49m
    �[38;5;248mFutureBuilder<String>�[39;49m
�[38;5;244mWhen the exception was thrown, this was the stack�[39;49m
�[38;5;244m#0      new Table.<anonymous closure>�[39;49m
�[38;5;244m#1      new Table�[39;49m
�[38;5;248m#2      MTable.getTableWidget�[39;49m
�[38;5;248m#3      MarkdownHelper.getTableWidget�[39;49m
�[38;5;248m#4      MarkdownGenerator._generatorWidget�[39;49m
�[38;5;244m...�[39;49m
�[38;5;248m════════════════════════════════════════════════════════════════════════════════�[39;49m
I/flutter (13380): cpp

�[38;5;248m════════ Exception caught by widgets library ═══════════════════════════════════�[39;49m
Table contains irregular row lengths.
�[38;5;244mThe relevant error-causing widget was�[39;49m
    �[38;5;248mFutureBuilder<String>�[39;49m
�[38;5;248m════════════════════════════════════════════════════════════════════════════════�[39;49m

Full log :
log.txt

My code:

MarkdownGenerator(
                            data: snapshot.data,
                            childMargin: EdgeInsets.only(left: 10, right: 10, top: 5, bottom: 5),
                            styleConfig: StyleConfig(
                               markdownTheme: (Theme.of(context).brightness == Brightness.dark) ? MarkdownTheme.darkTheme : MarkdownTheme.lightTheme,
                                preConfig: PreConfig(
                                    language: widget.sName,
                                    theme: (Theme.of(context).brightness == Brightness.dark) ? theme.vs2015Theme : theme.doccoTheme)))
                        .widgets
@asjqkkkk
Copy link
Owner

It looks like a table rows error,but I can't get the error log by using your sample

@asjqkkkk asjqkkkk added the bug Something isn't working label Apr 24, 2020
@the-thirteenth-fox
Copy link
Author

I cant understand how its happens. Can u test it from SliverList?

@asjqkkkk
Copy link
Owner

😅I'm a little busy recently,Just wait a moment,I will check this issue later

@the-thirteenth-fox
Copy link
Author

Any suggestions?

@asjqkkkk
Copy link
Owner

asjqkkkk commented May 4, 2020

Will this problem occur now?
I am doing some preparations for my interview😅
If you can provide more detailed information, then this problem can be quickly located and resolved

@asjqkkkk
Copy link
Owner

asjqkkkk commented May 4, 2020

image

It is MTable's bug,but I can't reproduce this problem with your data

@the-thirteenth-fox
Copy link
Author

the-thirteenth-fox commented May 4, 2020

Very strange. There TableRow problem. I dont understand how i can solve it. I create gist https://gist.github.com/mrpvb-pvbk/c85fe6d2feb53bc883ecc506bccda5c2
Try it from this
13.markdown.txt
data.

@the-thirteenth-fox
Copy link
Author

Yes! I solved this!) Look at this attachment
Screenshot (1)

@asjqkkkk
Copy link
Owner

asjqkkkk commented May 4, 2020

Yes! I solved this!) Look at this attachment
Screenshot (1)

can you provide the error data to me?😄

@the-thirteenth-fox
Copy link
Author

So, how i can add '||' to the table?

@the-thirteenth-fox
Copy link
Author

Yes! I solved this!) Look at this attachment
Screenshot (1)

can you provide the error data to me?😄

13.markdown.txt
This

@asjqkkkk
Copy link
Owner

asjqkkkk commented May 4, 2020

Условие Описание
a == 3
&&
b > 4 Составное условие истинно, если истинны оба простых условия.
a == 3
b > 4 Составное условие истинно, если истинно, хотя бы одно из простых условий.
!(a == 3) Условие истинно, если a не равно 3.

your data shows like this in github markdown
And I want to get the data that can cause this bug😂 not the right data

@the-thirteenth-fox
Copy link
Author

No, it's bug data! Check this '||' in ur markdwn

@the-thirteenth-fox
Copy link
Author

Screenshot (1)
Check this

@asjqkkkk
Copy link
Owner

asjqkkkk commented May 4, 2020

Ok, I found it! Wait for me to solve it😄

asjqkkkk added a commit that referenced this issue May 4, 2020
@asjqkkkk
Copy link
Owner

asjqkkkk commented May 4, 2020

You can update to v1.1.4, this issue has been solved😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants