flutter_flowin 0.1.0 copy "flutter_flowin: ^0.1.0" to clipboard
flutter_flowin: ^0.1.0 copied to clipboard

A Flutter design system built on design tokens and a Material-mapped theme, with a component library of buttons, inputs, chips, tabs, cards and sheets.

Flutter Flowin #

style: very good analysis Powered by Mason License: MIT

A Flutter design system built on design tokens and a Material-mapped theme, with a component library of buttons, inputs, chips, tabs, cards and sheets.

Installation 💻 #

flutter pub add flutter_flowin

Or add it to your pubspec.yaml:

dependencies:
  flutter_flowin: ^0.1.0

Then hand the theme to your MaterialApp — that is the whole setup:

import 'package:flutter_flowin/flutter_flowin.dart';

MaterialApp(
  theme: FlowinTheme.light,
  darkTheme: FlowinTheme.dark,
  home: const HomeScreen(),
);

The package re-exports Flutter's material library, so that single import is all a Flowin screen needs. See example/ for a complete app.


Features ✨ #

  • Framework-first theming — colors map onto ColorScheme, typography onto TextTheme, and component appearance onto Material component themes, so native widgets are styled without per-instance overrides
  • FlowinTokens theme extension — the tokens Material does not model (spacing scale, semantic status colors, base shadow, default icon size) ride on ThemeData via ThemeExtension<T>
  • Light and dark themesFlowinTheme.light and FlowinTheme.dark build both from one token set, with brightness-appropriate semantic colors and shadows
  • Design foundations — primitive tokens for colors, typography, spacing, radius, borders, shadows, icons, and icon sizing, plus an accessible-color helper for contrast-safe pairings
  • BuildContext extensionscontext.flowinTokens, context.spacing, context.semanticColors, alongside context.theme, context.colorScheme, and context.textTheme
  • Component library — buttons, inputs, color pickers, chips and chip groups, tabs, app bars, cards, and action sheets

Usage 🚀 #

Wrap your app with the theme:

import 'package:flutter_flowin/flutter_flowin.dart';

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: FlowinTheme.light,
      darkTheme: FlowinTheme.dark,
      home: const MyHomePage(),
    );
  }
}

Use widgets in your app:

FlowinButton.filled(
  onPressed: () {},
  label: 'Click me',
);

Access tokens via context extensions:

final spacing = context.spacing.md;              // 16
final success = context.semanticColors.success;
final shadow = context.flowinTokens.shadow;

Showcase 🖼️ #

The showcase/ app is a runnable gallery of every component — buttons, inputs, color pickers, chips, tabs, app bars, cards, and action sheets — grouped by area, with a live light/dark toggle:

cd showcase && fvm flutter run

Contributing 🤝 #

Setup, the pre-push hook, CI, tests and the changelog workflow are documented in CONTRIBUTING.md.


0
likes
0
points
319
downloads

Publisher

verified publisherluisburgos.xyz

Weekly Downloads

A Flutter design system built on design tokens and a Material-mapped theme, with a component library of buttons, inputs, chips, tabs, cards and sheets.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

figma_squircle, flutter, lucide_icons_flutter, meta, shared_preferences, smooth_page_indicator, super_tooltip

More

Packages that depend on flutter_flowin