bosskmk / pluto_grid

PlutoGrid is a dataGrid for flutter that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.
https://pluto.weblaze.dev
MIT License
636 stars 290 forks source link

Pluto Grid should respect the system theme of the OS #991

Closed SrS2225a closed 5 months ago

SrS2225a commented 7 months ago

Steps to reproduce the bug

  1. Set the flutter app to use dark mode (android in my case)
  2. In the app, open an view that contains the data grid
  3. Observe results

Expected results

Pluto grid renders the grid as a dark theme

Actual results

Pluto grid will continue to use a light theme, even though it should use a dark one to remain consistent with the rest of the ui https://media.nyxgoddess.org/talI2/BaMIXEsE66.jpg

Code sample

    return PlutoGrid(
      columns: columns,
      rows: rows,
      columnGroups: columnGroups,
      onLoaded: (PlutoGridOnLoadedEvent event) {
        event.stateManager.setSelectingMode(PlutoGridSelectingMode.row);
        stateManager = event.stateManager;
      },
      configuration: const PlutoGridConfiguration(
        columnSize: PlutoGridColumnSizeConfig(
          autoSizeMode: PlutoAutoSizeMode.scale,
          resizeMode: PlutoResizeMode.none
        )
      ),
    );
  }

Execution Environment

Flutter version Flutter 3.13.8 • channel [user-branch] • unknown source Framework • revision 6c4930c4ac (7 weeks ago) • 2023-10-18 10:57:55 -0500 Engine • revision 767d8c75e8 Tools • Dart 3.1.4 • DevTools 2.25.0

PlutoGrid version PlutoGrid version is 7.0.2

OS Android 14

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 5 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.