简体   繁体   English

如何使用 flutter 小部件创建类似 excel 的工作表?

[英]How can I create an excel like sheet with flutter widgets?

I have a spreadsheet, with about 100 rows and 30 columns I want to show on my app.我有一个电子表格,我想在我的应用程序上显示大约 100 行和 30 列。

I am looking to do something like this:我想做这样的事情: 在此处输入图像描述

My needs:我的需求:

  • Each cell should be Tappable每个单元格都应该是可点击的
  • Can scroll to a specific cell programmatically可以以编程方式滚动到特定的单元格
  • Is Not expensive to build建造成本不高

I was successful in creating this with Table (UI) + InteractiveViewer (allows zooming and scrolling bidirectionally) but it is very very heavy on the build, each build takes a toll on performance so I thought about using GridView.builder + InteractiveViewer which hopefully alleviates build a bit (still testing).我成功地使用Table (UI) + InteractiveViewer (允许双向缩放和滚动)创建了它,但是构建非常繁重,每个构建都会对性能造成影响,所以我考虑使用GridView.builder + InteractiveViewer ,这有望减轻建立一点(仍在测试)。

What do you think I should do for this project?你认为我应该为这个项目做什么?

There is also a way to use a famous package还有一种方法可以使用著名的 package

ex.)前任。)

https://pub.dev/packages/pluto_grid https://pub.dev/packages/pluto_grid

https://pub.dev/packages/flutter_layout_grid https://pub.dev/packages/flutter_layout_grid

But what comes to mind right now is to configure only that page as a webview.但是现在想到的是只将该页面配置为 webview。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM