Skip to content
SimonErichPublic

About

No description, website, or topics provided.

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

obers_ui

CI License: MIT

A comprehensive Flutter UI kit with design tokens, responsive utilities, and accessible components.

Installation

Add obers_ui to your pubspec.yaml:

dependencies:
  obers_ui:
    git:
      url: https://github.com/simonerich/obers_ui.git

Or for local development:

dependencies:
  obers_ui:
    path: ../obers_ui

Quick Start

OiApp is the entry point. It installs the theme, the overlay host and the accessibility scopes; no MaterialApp is involved.

import 'package:flutter/widgets.dart';
import 'package:obers_ui/obers_ui.dart';

void main() => runApp(
  OiApp(
    title: 'My App',
    theme: OiThemeData.light(),
    darkTheme: OiThemeData.dark(),
    themeMode: OiThemeMode.system,
    home: Builder(
      builder: (context) => OiPage(
        breakpoint: context.breakpoint,
        children: [
          OiLabel.h1('Hello'),
          OiButton.primary(label: 'Go', onTap: () {}),
        ],
      ),
    ),
  ),
);

Inside the tree, read design tokens from the context: context.colors, context.textTheme, context.spacing, context.radius, context.animations and context.breakpoint.

Components

The library is layered; each layer builds on the ones above it. The table lists a few entry points per layer, AI_README.md has the full catalog.

Layer Examples
Foundation OiApp, OiThemeData, OiColorScheme, OiTextTheme, OiSpacingScale, OiRadiusScale, OiShadowScale, OiAnimationConfig, OiBreakpointScale, OiResponsive<T>
Primitives OiLabel, OiIcon, OiSurface, OiDivider, OiSpacer, OiRow, OiColumn, OiGrid, OiPage, OiTappable
Components OiButton, OiIconButton, OiTextInput, OiSelect, OiCheckbox, OiSwitch, OiCard, OiAvatar, OiBadge, OiDialog, OiSheet, OiPopover, OiProgress, OiSkeletonGroup, OiEmptyState
Composites OiTable, OiCalendar, OiGantt, OiWizard, OiSidebar, OiRichEditor, OiErrorPage
Modules OiAppShell, OiAuthPage, OiChat, OiCheckout, OiDashboard, OiFileExplorer, OiKanban

Packages

The repository contains two opt-in packages that build on obers_ui:

Package Purpose
obers_ui_charts Chart foundation and chart widgets (OiLineChart, OiBarChart, OiPieChart, ...), maps and dashboard modules
obers_ui_autoforms Controller-first form handling (OiAfForm, OiAfController) with field wrappers and validation

Widget Prefix

All obers_ui widgets use the Oi prefix to avoid naming conflicts with Flutter's built-in widgets.

Example

Run the example app to see all components in action:

cd example
flutter run

Documentation

Generate API documentation:

dart doc

The generated docs will be in doc/api/.

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT License - see LICENSE for details.

About

No description, website, or topics provided.

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages