flutty_ds 0.1.1 copy "flutty_ds: ^0.1.1" to clipboard
flutty_ds: ^0.1.1 copied to clipboard

Design System for Flutter - tokens, components and UI primitives.

flutty_ds #

pub package pub points likes

Design System for Flutter - tokens, components and UI primitives.

Installation #

dependencies:
  flutty_ds: ^0.1.1

Usage #

Quick start #

Import:

import 'package:flutty_ds/flutty_ds.dart';

Tokens #

final primary = FluttyColors.primary;
final padding = EdgeInsets.all(FluttySpacing.md);

Theme #

FluttyThemeWrapper helps you build a MaterialApp with a consistent theme setup.

FluttyThemeWrapper(
  theme: FluttyMaterialTheme.defaultTheme,
  mode: ThemeMode.system,
  materialAppBuilder: (theme, mode) {
    return MaterialApp(
      themeMode: mode,
      theme: theme.light() ?? ThemeData.light(),
      darkTheme: theme.dark() ?? ThemeData.dark(),
      home: const Scaffold(body: Center(child: Text('Hello'))),
    );
  },
);

Components #

ClickableCard(
  icon: Icons.touch_app,
  onTap: () {},
  body: const Text('Tap me'),
);

Example #

See packages/flutty_ds/example for a small demo app showcasing tokens, theming and a few components.

API Documentation #

See the API docs for full documentation.

2
likes
150
points
355
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Design System for Flutter - tokens, components and UI primitives.

Repository (GitHub)
View/report issues

Topics

#design-system #ui #widget #theming

License

MIT (license)

Dependencies

bloc, equatable, flutter, flutter_bloc, shared_preferences

More

Packages that depend on flutty_ds