Skip to content

Commit

Permalink
Sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kawaijoe committed May 9, 2024
1 parent ef16cfd commit d63075c
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
11 changes: 11 additions & 0 deletions forui/lib/forui.dart
Original file line number Diff line number Diff line change
@@ -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';
1 change: 0 additions & 1 deletion forui/lib/src/box/box.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
7 changes: 2 additions & 5 deletions forui/lib/src/box/box_style.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
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 {
/// The color.
final Color color;

/// The text.
final TextStyle text; // TextStyleBuilder
final TextStyle text;

/// Creates a [FBoxStyle].
const FBoxStyle({required this.color, required this.text});
Expand Down
2 changes: 1 addition & 1 deletion forui/lib/src/theme/font/text_style_builder.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 0 additions & 2 deletions forui/lib/src/theme/style/zinc_style.dart
Original file line number Diff line number Diff line change
@@ -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].
///
Expand Down
3 changes: 1 addition & 2 deletions forui/lib/src/theme/theme.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 1 addition & 3 deletions forui/lib/src/theme/theme_data.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
4 changes: 1 addition & 3 deletions forui/lib/src/theme/widget_data.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit d63075c

Please sign in to comment.