flutty_ds
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.
Libraries
- cards/arrow_clickable_card
- cards/clickable_card
- cards/error_card
- cards/radio_card
- cards/toggle_card
- dimens
- dropdown/simple_dropdown
- flutty_ds
- Design System for Flutter - tokens, components and UI primitives.
- form/outline_text_field
- search_bar/search_bar
- table/element/expanded_row_table_element
- table/element/static_row_table_element
- table/expandable_row_table
- table/expandable_row_table_card
- table/static_row_table
- table/static_row_table_card
- theme/color/blue_theme
- theme/color/custom_colors
- theme/color/green_theme
- theme/components/color_palette
- theme/components/theme_mode_selector
- theme/custom_snack_bar
- theme/flutty_material_theme
- theme/flutty_theme_wrapper
- theme/logic/theme_cubit
- theme_extension
- tokens/flutty_colors
- tokens/flutty_spacing