darkModeTilesContainerBuilder function
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>[
//Colors get Inverted and then Hue Rotated by 180 degrees
0.5740000009536743, -1.4299999475479126, -0.14399999380111694, 0, 255, //R
-0.4259999990463257, -0.429999977350235, -0.14399999380111694, 0, 255, //G
-0.4259999990463257, -1.4299999475479126, 0.8559999465942383, 0, 255, //B
0, 0, 0, 1, 0, //A
]),
child: tilesContainer,
);
}