defaultViewConfig top-level property

Map<String, dynamic> defaultViewConfig
getter/setter pair

Default View Configuration (UI Styles).

Every neutral colour carries its dark: peer so the feedback surfaces follow the app's WindThemeData.brightness; the saturated status fills (bg-green-500 text-white and the like) read the same in both modes. snackbar.position is 'top' or 'bottom'; the barrier keys take a background className whose bg-* colour tints the modal barrier.

Implementation

Map<String, dynamic> defaultViewConfig = {
  'view': {
    'snackbar': {
      'position': 'bottom',
      'duration': 4000,
      'style': {
        'success': 'bg-green-500 text-white p-4 rounded-lg shadow-lg',
        'error': 'bg-red-500 text-white p-4 rounded-lg shadow-lg',
        'info': 'bg-blue-500 text-white p-4 rounded-lg shadow-lg',
        'warning': 'bg-amber-500 text-white p-4 rounded-lg shadow-lg',
      },
    },
    'dialog': {
      'barrier_dismissible': true,
      'barrier_color': 'bg-black/50 dark:bg-black/70',
      'class': 'bg-white dark:bg-gray-900 rounded-xl p-6 shadow-2xl max-w-lg',
    },
    'loading': {
      'barrier_class': 'bg-black/50 dark:bg-black/70',
      'container_class': 'bg-white dark:bg-gray-900 rounded-xl p-6 shadow-2xl',
      'spinner_class': 'text-blue-500',
      'text_class': 'text-gray-600 dark:text-gray-400 text-sm mt-4',
    },
    'toast': {
      'class':
          'bg-gray-800 dark:bg-gray-700 text-white px-6 py-3 rounded-full '
          'shadow-lg',
      'duration': 2000,
    },
    'confirm': {
      'container_class':
          'bg-white dark:bg-gray-900 rounded-xl p-6 shadow-2xl w-80',
      'title_class': 'text-lg font-bold text-gray-900 dark:text-gray-100',
      'message_class': 'text-gray-600 dark:text-gray-400 mt-2',
      'button_cancel_class': 'px-4 py-2 text-gray-600 dark:text-gray-400',
      'button_confirm_class': 'px-4 py-2 bg-blue-500 text-white rounded-lg',
      'button_confirm_text_class': 'text-white',
      'button_danger_class': 'px-4 py-2 bg-red-500 text-white rounded-lg',
      'button_danger_text_class': 'text-white',
    },
  },
};