tomasweigenast / paged-datatable

A DataTable widget for Flutter that supports cursor/offset pagination, filters and sorting
https://pub.dev/packages/paged_datatable
MIT License
20 stars 19 forks source link

Name-attribute in DateRangePickerTableFilter is not shown #25

Closed philitell closed 2 months ago

philitell commented 3 months ago

Setting the name-attribute of DateRangePickerTableFilter seems to have no effect anymore (it worked in previous versions <2.0). When setting the initialValue to null no label (with name) is shown in the popup-menu.

 DateRangePickerTableFilter(
        id: Constants.columnIdDate,
        name: S.of(context).filterTitleDate,
        formatter: (DateTimeRange dateRange) => S
            .of(context)
            .betweenDates(DateFormat.yMd().format(dateRange.start), DateFormat.yMd().format(dateRange.end)),
        chipFormatter: (DateTimeRange dateRange) => S
            .of(context)
            .betweenDates(DateFormat.yMd().format(dateRange.start), DateFormat.yMd().format(dateRange.end)),
        initialValue: null,
        firstDate: DateTime(2023, 10, 1),
        lastDate: DateTime.now(),
        enabled: true,
      ),

Bildschirmfoto vom 2024-06-11 09-02-38

philitell commented 3 months ago

Here is a reproducible example: "table_test_page.dart" in https://github.com/philitell/paged_data_table_test