ViewMatrix

ViewMatrix is a configurable Flutter framework for building structured List and Grid views with a single unified component.
It supports both API-driven data and local datasets, while offering a deeply customizable UI layer.


Key Capabilities

Data Source Flexibility

  • Supports GET, POST, PUT, DELETE.
  • Handles JSON request bodies.
  • Automatically detects multipart/form-data when files are included.
  • Supports header injection, tokens, and query parameters.
  • Customizable success status code validation.

Data Normalization

ViewMatrix normalizes incoming API structures into a unified DataItem model with detection for:

  • Title
  • Description
  • Image URL
  • Status/Badge
  • Numeric values
  • Date fields

Developers can also override fields with explicit mapping via fieldMapping.

UI Customization

  • Typography control for all text types.
  • Card-level customization (radius, elevation, borders).
  • Image styling with placeholders and fallback behavior.
  • Badge design configuration.
  • Loader behavior including size, color, stroke width, and full custom widget support.
  • Optional shimmer loading state.
  • Grid/List spacing and layout controls.
  • Divider rendering for list layouts.
  • Pluggable custom row/card builders for full UI override.

Installation

dependencies:
  view_matrix: ^1.2.0

Libraries

view_matrix