asjqkkkk / markdown_widget

📖Rendering markdown by flutter!Welcome for pr and issue.
MIT License
324 stars 94 forks source link

table config 的 bodyStyle 无效,headerStyle 设置影响了 body 的样式,我看了代码,是body也用了head的配置导致。 #191

Open zhouzhuo810 opened 4 weeks ago

zhouzhuo810 commented 4 weeks ago

Describe the bug table config 的 bodyStyle 无效,headerStyle 设置影响了 body 的样式,我看了代码,是body也用了head的配置导致。

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment(please complete the following information): Please use flutter doctor -v to show your flutter environment, and add your markdown_widget version too

Platform MacOS

Source data

        TableConfig(
          wrapper: (child) {
            return Scrollbar(
              controller: scrollController,
              child: SingleChildScrollView(
                controller: scrollController,
                scrollDirection: Axis.horizontal,
                child: child,
              ),
            );
          },
          headerStyle: const TextStyle(fontWeight: FontWeight.bold),
          bodyStyle: const TextStyle(fontWeight: FontWeight.normal, color: Colors.red),
        )
zhouzhuo810 commented 4 weeks ago

https://github.com/asjqkkkk/markdown_widget/blob/master/lib/widget/blocks/container/table.dart

145行