bdlukaa / fluent_ui

Implements Microsoft's WinUI3 in Flutter.
https://bdlukaa.github.io/fluent_ui/
BSD 3-Clause "New" or "Revised" License
2.91k stars 453 forks source link

DataTable or the equivalent in the package #1031

Closed daumienebi closed 7 months ago

daumienebi commented 7 months ago

I have been exploring the package and i want to say thanks for all those who contributed in putting this package together. After going through the documentation and searching online, i couldn't find a way of directly using a datatabe or any sort of table to display data without importing the material.dart file. I tried to use the datatable2 package but it needs a Material Widget above it.

The error i got was:

image

I would like to know if there is any solution integrated with this package since i couldn't find it in the documentation and if there is, i would like it to be documented.

I created a custom class for the datatable and wrapped it with a Scaffold since the Scaffold contains Material as indicated in the error message.

image

bdlukaa commented 7 months ago

We do not have support data table in the package. See #514.

To fix the error stated, use a Material widget from the flutter/material package above your widget tree. This library is not automatically compatible with all material widgets.

daumienebi commented 7 months ago

Alright, thanks for your time 👍