darkModeTilesContainerBuilder function

Widget darkModeTilesContainerBuilder(
  1. BuildContext context,
  2. Widget tilesContainer
)

Applies inversion color matrix on Tiles container which may simulate Dark mode.

Implementation

Widget darkModeTilesContainerBuilder(
  BuildContext context,
  Widget tilesContainer,
) {
  return ColorFiltered(
    colorFilter: const ColorFilter.matrix(<double>[
      -1,
      0,
      0,
      0,
      255,
      0,
      -1,
      0,
      0,
      255,
      0,
      0,
      -1,
      0,
      255,
      0,
      0,
      0,
      1,
      0,
    ]),
    child: tilesContainer,
  );
}