Replies: 1 comment
-
For anyone else wanting to go down that path here's a starting point with the bits of interest. PlutoGridConfiguration(
localeText: const PlutoGridLocaleTextCustom.greek(),
enterKeyAction: PlutoGridEnterKeyAction.none,
columnSize: const PlutoGridColumnSizeConfig(
resizeMode: PlutoResizeMode.pushAndPull,
autoSizeMode: PlutoAutoSizeMode.scale,
),
style: PlutoGridStyleConfig(
enableGridBorderShadow: false,
enableColumnBorderVertical: false,
enableColumnBorderHorizontal: true,
enableCellBorderVertical: false,
enableCellBorderHorizontal: false,
borderColor: theme.scaffoldBackgroundColor,
gridBorderColor: theme.scaffoldBackgroundColor,
gridBackgroundColor: theme.scaffoldBackgroundColor,
activatedBorderColor: theme.dividerColor,
inactivatedBorderColor: theme.dividerColor,
oddRowColor: isDarkMode
? lighten(theme.scaffoldBackgroundColor, 0.03)
: darken(theme.scaffoldBackgroundColor, 0.03),
evenRowColor: theme.scaffoldBackgroundColor,
activatedColor: theme.highlightColor,
checkedColor: theme.highlightColor,
cellColorInEditState: theme.highlightColor,
cellColorInReadOnlyState: theme.scaffoldBackgroundColor,
dragTargetColumnColor: theme.highlightColor,
iconColor: theme.iconTheme.color!,
disabledIconColor: theme.disabledColor,
menuBackgroundColor: theme.scaffoldBackgroundColor,
iconSize: 16,
rowHeight: 40,
columnHeight: 40,
columnFilterHeight: 40,
defaultColumnTitlePadding: const EdgeInsets.symmetric(horizontal: 8),
defaultColumnFilterPadding: const EdgeInsets.symmetric(horizontal: 8),
defaultCellPadding: const EdgeInsets.symmetric(horizontal: 8),
columnTextStyle: theme.textTheme.bodyLarge!,
cellTextStyle: theme.textTheme.bodyLarge!,
columnContextIcon: Icons.dehaze,
columnResizeIcon: Icons.code_sharp,
gridBorderRadius: const BorderRadius.only(
topLeft: Radius.circular(8),
topRight: Radius.circular(8),
),
gridPopupBorderRadius: const BorderRadius.only(
topLeft: Radius.circular(8),
topRight: Radius.circular(8),
),
),
), |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there some easy way I can apply the existing app theme to the grid? Currently the entire app is configured to work 100% with the standard flutter theme (
Theme.of(context).xxxx
). Is there any easy way for the grid to use it?Beta Was this translation helpful? Give feedback.
All reactions