Skip to content

Commit

Permalink
Split forui library into sub-libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Pante committed Jun 27, 2024
1 parent 860aa3e commit 404c64a
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 29 deletions.
5 changes: 5 additions & 0 deletions forui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Next

* Change default `FTextFieldStyle`'s vertical content padding from `5` to `15`.
* Split exports in `forui.dart` into sub-libraries.

## 0.1.0

* Initial release! 🚀
6 changes: 6 additions & 0 deletions forui/lib/assets.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/// The bundled assets in [forui_assets](https://github.com/forus-labs/forui/tree/main/forui_assets), exported for
/// convenience.
library forui.assets;

export 'package:forui_assets/forui_assets.dart';
export 'package:forui/src/svg_extension.nitrogen.dart';
32 changes: 3 additions & 29 deletions forui/lib/forui.dart
Original file line number Diff line number Diff line change
@@ -1,32 +1,6 @@
/// A Flutter package for building beautiful user interfaces.
library forui;

// Icons
export 'package:forui_assets/forui_assets.dart';
export 'package:forui/src/svg_extension.nitrogen.dart';

// Theme
export 'src/theme/color_scheme.dart';
export 'src/theme/style.dart';
export 'src/theme/theme.dart';
export 'src/theme/theme_data.dart';

export 'src/theme/typography.dart';

// Themes
export 'src/theme/themes.dart';

// Foundation
export 'src/foundation/tappable.dart' hide FTappable;

// Widgets
export 'src/widgets/badge/badge.dart' hide FBadgeContent, Variant;
export 'src/widgets/button/button.dart' hide FButtonContent, Variant;
export 'src/widgets/card/card.dart' hide FCardContent;
export 'src/widgets/dialog/dialog.dart' hide FDialogContent, FHorizontalDialogContent, FVerticalDialogContent;
export 'src/widgets/header/header.dart';
export 'src/widgets/tabs/tabs.dart';
export 'src/widgets/text_field/text_field.dart';
export 'src/widgets/scaffold.dart';
export 'src/widgets/separator.dart';
export 'src/widgets/switch.dart';
export 'assets.dart';
export 'theme.dart';
export 'widgets.dart';
12 changes: 12 additions & 0 deletions forui/lib/theme.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/// Classes and functions for configuring the Forui widgets' theme. A theme configures the colors and typographic
/// choices of Forui widgets.
library forui.theme;

import 'package:forui/theme.dart';

export 'src/theme/color_scheme.dart';
export 'src/theme/style.dart';
export 'src/theme/theme.dart';
export 'src/theme/theme_data.dart';
export 'src/theme/typography.dart';
export 'src/theme/themes.dart';
13 changes: 13 additions & 0 deletions forui/lib/widgets.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/// The Forui widgets and their corresponding styles.
library forui.widgets;

export 'src/widgets/badge/badge.dart' hide FBadgeContent, Variant;
export 'src/widgets/button/button.dart' hide FButtonContent, Variant;
export 'src/widgets/card/card.dart' hide FCardContent;
export 'src/widgets/dialog/dialog.dart' hide FDialogContent, FHorizontalDialogContent, FVerticalDialogContent;
export 'src/widgets/header/header.dart';
export 'src/widgets/tabs/tabs.dart';
export 'src/widgets/text_field/text_field.dart' hide defaultContextMenuBuilder;
export 'src/widgets/scaffold.dart';
export 'src/widgets/separator.dart';
export 'src/widgets/switch.dart';

0 comments on commit 404c64a

Please sign in to comment.