diff --git a/forui/lib/forui.dart b/forui/lib/forui.dart index e70ce397a..a15d4f680 100644 --- a/forui/lib/forui.dart +++ b/forui/lib/forui.dart @@ -1,6 +1,17 @@ /// A Flutter package for building beautiful user interfaces. library forui; +// Theme +export 'src/theme/style_data.dart'; export 'src/theme/theme.dart'; export 'src/theme/theme_data.dart'; +export 'src/theme/widget_data.dart'; + +export 'src/theme/font/font_data.dart'; +export 'src/theme/font/text_style_builder.dart'; + export 'src/theme/style/zinc_style.dart'; + +// Widgets +export 'src/box/box.dart'; +export 'src/box/box_style.dart'; diff --git a/forui/lib/src/box/box.dart b/forui/lib/src/box/box.dart index f4ba5a3cc..f058f60c6 100644 --- a/forui/lib/src/box/box.dart +++ b/forui/lib/src/box/box.dart @@ -1,7 +1,6 @@ import 'package:flutter/material.dart'; import 'package:forui/forui.dart'; -import 'package:forui/src/box/box_style.dart'; /// A sample widget demonstrating the architecture of ForUI. class FBox extends StatelessWidget { diff --git a/forui/lib/src/box/box_style.dart b/forui/lib/src/box/box_style.dart index c04c6a9ee..0091c48cb 100644 --- a/forui/lib/src/box/box_style.dart +++ b/forui/lib/src/box/box_style.dart @@ -1,9 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:forui/src/box/box.dart'; -import 'package:forui/src/theme/font/font_data.dart'; -import 'package:forui/src/theme/font/text_style_builder.dart'; -import 'package:forui/src/theme/style_data.dart'; +import 'package:forui/forui.dart'; /// A class that holds the styles for [FBox]. class FBoxStyle { @@ -11,7 +8,7 @@ class FBoxStyle { final Color color; /// The text. - final TextStyle text; // TextStyleBuilder + final TextStyle text; /// Creates a [FBoxStyle]. const FBoxStyle({required this.color, required this.text}); diff --git a/forui/lib/src/theme/font/text_style_builder.dart b/forui/lib/src/theme/font/text_style_builder.dart index 1b999f34c..aae739be5 100644 --- a/forui/lib/src/theme/font/text_style_builder.dart +++ b/forui/lib/src/theme/font/text_style_builder.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:forui/src/theme/font/font_data.dart'; +import 'package:forui/forui.dart'; /// An extension that adds a `inherit` constructor to [TextStyleBuilder]. extension type TextStyleBuilder(TextStyle style) implements TextStyle { diff --git a/forui/lib/src/theme/style/zinc_style.dart b/forui/lib/src/theme/style/zinc_style.dart index 9b79ddfab..c83c061b3 100644 --- a/forui/lib/src/theme/style/zinc_style.dart +++ b/forui/lib/src/theme/style/zinc_style.dart @@ -1,8 +1,6 @@ import 'package:flutter/material.dart'; import 'package:forui/forui.dart'; -import 'package:forui/src/theme/font/font_data.dart'; -import 'package:forui/src/theme/style_data.dart'; /// Zinc style of [FThemeData]. /// diff --git a/forui/lib/src/theme/theme.dart b/forui/lib/src/theme/theme.dart index ed930b70a..41b2118f2 100644 --- a/forui/lib/src/theme/theme.dart +++ b/forui/lib/src/theme/theme.dart @@ -1,7 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:forui/src/theme/style/zinc_style.dart'; -import 'package:forui/src/theme/theme_data.dart'; +import 'package:forui/forui.dart'; /// Represents a ForUI theme. class FTheme extends StatefulWidget { diff --git a/forui/lib/src/theme/theme_data.dart b/forui/lib/src/theme/theme_data.dart index 366b5f838..c4eba0acb 100644 --- a/forui/lib/src/theme/theme_data.dart +++ b/forui/lib/src/theme/theme_data.dart @@ -1,8 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:forui/src/theme/font/font_data.dart'; -import 'package:forui/src/theme/style_data.dart'; -import 'package:forui/src/theme/widget_data.dart'; +import 'package:forui/forui.dart'; /// A class that holds the theme data for the app. class FThemeData { diff --git a/forui/lib/src/theme/widget_data.dart b/forui/lib/src/theme/widget_data.dart index 39ae2e712..4aaf5208a 100644 --- a/forui/lib/src/theme/widget_data.dart +++ b/forui/lib/src/theme/widget_data.dart @@ -1,6 +1,4 @@ -import 'package:forui/src/box/box_style.dart'; -import 'package:forui/src/theme/font/font_data.dart'; -import 'package:forui/src/theme/style_data.dart'; +import 'package:forui/forui.dart'; /// A class that holds the widget data. class FWidgetData {