Selaa lähdekoodia

flowy_infra & flowy_infra_ui migration

appflowy 3 vuotta sitten
vanhempi
commit
7a4d950c9c
63 muutettua tiedostoa jossa 170 lisäystä ja 191 poistoa
  1. 2 2
      app_flowy/lib/home/presentation/home_layout.dart
  2. 1 1
      app_flowy/lib/home/presentation/home_screen.dart
  3. 2 2
      app_flowy/lib/home/presentation/widgets/edit_pannel/edit_pannel.dart
  4. 1 1
      app_flowy/lib/home/presentation/widgets/menu/home_menu.dart
  5. 1 1
      app_flowy/lib/startup/tasks/app_widget_task.dart
  6. 2 2
      app_flowy/lib/welcome/presentation/welcome_screen.dart
  7. 0 0
      app_flowy/packages/flowy_infra/.gitignore
  8. 1 1
      app_flowy/packages/flowy_infra/.metadata
  9. 0 0
      app_flowy/packages/flowy_infra/CHANGELOG.md
  10. 0 0
      app_flowy/packages/flowy_infra/LICENSE
  11. 39 0
      app_flowy/packages/flowy_infra/README.md
  12. 0 0
      app_flowy/packages/flowy_infra/analysis_options.yaml
  13. 0 0
      app_flowy/packages/flowy_infra/lib/color.dart
  14. 0 0
      app_flowy/packages/flowy_infra/lib/size.dart
  15. 0 0
      app_flowy/packages/flowy_infra/lib/strings.dart
  16. 0 0
      app_flowy/packages/flowy_infra/lib/text_style.dart
  17. 1 1
      app_flowy/packages/flowy_infra/lib/theme.dart
  18. 0 0
      app_flowy/packages/flowy_infra/lib/time/duration.dart
  19. 0 0
      app_flowy/packages/flowy_infra/lib/time/prelude.dart
  20. 0 0
      app_flowy/packages/flowy_infra/lib/uuid.dart
  21. 14 7
      app_flowy/packages/flowy_infra/pubspec.lock
  22. 5 5
      app_flowy/packages/flowy_infra/pubspec.yaml
  23. 0 0
      app_flowy/packages/flowy_infra/test/flowy_infra_test.dart
  24. 0 0
      app_flowy/packages/flowy_infra_ui/.gitignore
  25. 1 1
      app_flowy/packages/flowy_infra_ui/.metadata
  26. 0 0
      app_flowy/packages/flowy_infra_ui/CHANGELOG.md
  27. 0 0
      app_flowy/packages/flowy_infra_ui/LICENSE
  28. 39 0
      app_flowy/packages/flowy_infra_ui/README.md
  29. 0 5
      app_flowy/packages/flowy_infra_ui/analysis_options.yaml
  30. 0 0
      app_flowy/packages/flowy_infra_ui/lib/styles/scrolling/styled_list.dart
  31. 3 4
      app_flowy/packages/flowy_infra_ui/lib/styles/scrolling/styled_scroll_bar.dart
  32. 0 0
      app_flowy/packages/flowy_infra_ui/lib/styles/scrolling/styled_scrollview.dart
  33. 0 0
      app_flowy/packages/flowy_infra_ui/lib/styles/styled_bar_title.dart
  34. 0 0
      app_flowy/packages/flowy_infra_ui/lib/styles/styled_close_button.dart
  35. 1 1
      app_flowy/packages/flowy_infra_ui/lib/styles/styled_container.dart
  36. 1 1
      app_flowy/packages/flowy_infra_ui/lib/styles/styled_image_icon.dart
  37. 3 3
      app_flowy/packages/flowy_infra_ui/lib/styles/styled_text_input.dart
  38. 3 3
      app_flowy/packages/flowy_infra_ui/lib/widget/buttons/base_styled_button.dart
  39. 3 4
      app_flowy/packages/flowy_infra_ui/lib/widget/buttons/ok_cancel_button.dart
  40. 3 3
      app_flowy/packages/flowy_infra_ui/lib/widget/buttons/primary_button.dart
  41. 4 5
      app_flowy/packages/flowy_infra_ui/lib/widget/buttons/secondary_button.dart
  42. 0 0
      app_flowy/packages/flowy_infra_ui/lib/widget/clickable_extension.dart
  43. 0 0
      app_flowy/packages/flowy_infra_ui/lib/widget/constraint_flex_view.dart
  44. 0 0
      app_flowy/packages/flowy_infra_ui/lib/widget/dialog/dialog_context.dart
  45. 0 0
      app_flowy/packages/flowy_infra_ui/lib/widget/dialog/dialog_size.dart
  46. 7 7
      app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart
  47. 0 0
      app_flowy/packages/flowy_infra_ui/lib/widget/mouse_hover_builder.dart
  48. 0 0
      app_flowy/packages/flowy_infra_ui/lib/widget/rounded_button.dart
  49. 1 1
      app_flowy/packages/flowy_infra_ui/lib/widget/rounded_input_field.dart
  50. 0 0
      app_flowy/packages/flowy_infra_ui/lib/widget/route/animation.dart
  51. 0 0
      app_flowy/packages/flowy_infra_ui/lib/widget/seperated_column.dart
  52. 0 0
      app_flowy/packages/flowy_infra_ui/lib/widget/spacing.dart
  53. 0 0
      app_flowy/packages/flowy_infra_ui/lib/widget/text_field_container.dart
  54. 9 30
      app_flowy/packages/flowy_infra_ui/pubspec.lock
  55. 5 5
      app_flowy/packages/flowy_infra_ui/pubspec.yaml
  56. 0 0
      app_flowy/packages/flowy_infra_ui/test/flowy_ui_test.dart
  57. 0 21
      app_flowy/packages/flowy_sdk/example/pubspec.lock
  58. 0 21
      app_flowy/packages/flowy_sdk/pubspec.lock
  59. 0 2
      app_flowy/packages/flowy_sdk/pubspec.yaml
  60. 0 14
      app_flowy/packages/flowy_style/README.md
  61. 0 14
      app_flowy/packages/infra/README.md
  62. 14 21
      app_flowy/pubspec.lock
  63. 4 2
      app_flowy/pubspec.yaml

+ 2 - 2
app_flowy/lib/home/presentation/home_layout.dart

@@ -1,7 +1,7 @@
 import 'package:app_flowy/home/application/home_bloc.dart';
+import 'package:flowy_infra/size.dart';
+import 'package:flowy_infra/time/duration.dart';
 import 'package:flutter/material.dart';
-import 'package:flowy_style/time/duration.dart';
-import 'package:flowy_style/size.dart';
 // ignore: import_of_legacy_library_into_null_safe
 import 'package:sized_context/sized_context.dart';
 import 'package:flutter_bloc/flutter_bloc.dart';

+ 1 - 1
app_flowy/lib/home/presentation/home_screen.dart

@@ -7,9 +7,9 @@ import 'package:app_flowy/home/presentation/widgets/edit_pannel/pannel_animation
 import 'package:app_flowy/home/presentation/widgets/home_top_bar.dart';
 import 'package:app_flowy/home/presentation/widgets/menu/home_menu.dart';
 import 'package:app_flowy/startup/startup.dart';
+import 'package:flowy_infra_ui/styles/styled_container.dart';
 import 'package:flowy_logger/flowy_logger.dart';
 import 'package:flowy_sdk/protobuf/user_detail.pb.dart';
-import 'package:flowy_style/styled_container.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter_bloc/flutter_bloc.dart';
 import 'package:styled_widget/styled_widget.dart';

+ 2 - 2
app_flowy/lib/home/presentation/widgets/edit_pannel/edit_pannel.dart

@@ -2,8 +2,8 @@ import 'package:app_flowy/home/application/edit_pannel/edit_pannel_bloc.dart';
 import 'package:app_flowy/home/domain/edit_context.dart';
 import 'package:app_flowy/startup/startup.dart';
 import 'package:dartz/dartz.dart';
-import 'package:flowy_style/styled_bar_title.dart';
-import 'package:flowy_style/styled_close_button.dart';
+import 'package:flowy_infra_ui/styles/styled_bar_title.dart';
+import 'package:flowy_infra_ui/styles/styled_close_button.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter_bloc/flutter_bloc.dart';
 import '../../home_sizes.dart';

+ 1 - 1
app_flowy/lib/home/presentation/widgets/menu/home_menu.dart

@@ -2,7 +2,7 @@ import 'package:app_flowy/home/application/menu/menu_bloc.dart';
 import 'package:app_flowy/home/domain/page_context.dart';
 import 'package:app_flowy/startup/startup.dart';
 import 'package:dartz/dartz.dart';
-import 'package:flowy_style/size.dart';
+import 'package:flowy_infra/size.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter_bloc/flutter_bloc.dart';
 import '../../home_sizes.dart';

+ 1 - 1
app_flowy/lib/startup/tasks/app_widget_task.dart

@@ -1,5 +1,5 @@
 import 'package:app_flowy/startup/startup.dart';
-import 'package:flowy_style/theme.dart';
+import 'package:flowy_infra/theme.dart';
 import 'package:flutter/material.dart';
 import 'package:provider/provider.dart';
 import 'package:window_size/window_size.dart';

+ 2 - 2
app_flowy/lib/welcome/presentation/welcome_screen.dart

@@ -2,11 +2,11 @@ import 'package:app_flowy/welcome/domain/interface.dart';
 import 'package:app_flowy/welcome/domain/auth_state.dart';
 import 'package:app_flowy/startup/startup.dart';
 import 'package:app_flowy/welcome/application/welcome_bloc.dart';
+import 'package:flowy_infra_ui/widget/route/animation.dart';
 import 'package:flowy_logger/flowy_logger.dart';
-import 'package:flowy_style/route/animation.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter_bloc/flutter_bloc.dart';
-import 'package:flowy_style/time/prelude.dart';
+import 'package:flowy_infra/time/prelude.dart';
 
 class WelcomeScreen extends StatelessWidget {
   const WelcomeScreen({Key? key}) : super(key: key);

+ 0 - 0
app_flowy/packages/flowy_style/.gitignore → app_flowy/packages/flowy_infra/.gitignore


+ 1 - 1
app_flowy/packages/flowy_style/.metadata → app_flowy/packages/flowy_infra/.metadata

@@ -4,7 +4,7 @@
 # This file should be version controlled and should not be manually edited.
 
 version:
-  revision: fa5883b78e566877613ad1ccb48dd92075cb5c23
+  revision: 96bbcd006fafade4ad7a4abde77cec32df6846ea
   channel: dev
 
 project_type: package

+ 0 - 0
app_flowy/packages/flowy_style/CHANGELOG.md → app_flowy/packages/flowy_infra/CHANGELOG.md


+ 0 - 0
app_flowy/packages/flowy_style/LICENSE → app_flowy/packages/flowy_infra/LICENSE


+ 39 - 0
app_flowy/packages/flowy_infra/README.md

@@ -0,0 +1,39 @@
+<!-- 
+This README describes the package. If you publish this package to pub.dev,
+this README's contents appear on the landing page for your package.
+
+For information about how to write a good package README, see the guide for
+[writing package pages](https://dart.dev/guides/libraries/writing-package-pages). 
+
+For general information about developing packages, see the Dart guide for
+[creating packages](https://dart.dev/guides/libraries/create-library-packages)
+and the Flutter guide for
+[developing packages and plugins](https://flutter.dev/developing-packages). 
+-->
+
+TODO: Put a short description of the package here that helps potential users
+know whether this package might be useful for them.
+
+## Features
+
+TODO: List what your package can do. Maybe include images, gifs, or videos.
+
+## Getting started
+
+TODO: List prerequisites and provide or point to information on how to
+start using the package.
+
+## Usage
+
+TODO: Include short and useful examples for package users. Add longer examples
+to `/example` folder. 
+
+```dart
+const like = 'sample';
+```
+
+## Additional information
+
+TODO: Tell users more about the package: where to find more information, how to 
+contribute to the package, how to file issues, what response they can expect 
+from the package authors, and more.

+ 0 - 0
app_flowy/packages/infra/analysis_options.yaml → app_flowy/packages/flowy_infra/analysis_options.yaml


+ 0 - 0
app_flowy/packages/infra/lib/color.dart → app_flowy/packages/flowy_infra/lib/color.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/size.dart → app_flowy/packages/flowy_infra/lib/size.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/strings.dart → app_flowy/packages/flowy_infra/lib/strings.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/text_style.dart → app_flowy/packages/flowy_infra/lib/text_style.dart


+ 1 - 1
app_flowy/packages/flowy_style/lib/theme.dart → app_flowy/packages/flowy_infra/lib/theme.dart

@@ -1,6 +1,6 @@
+import 'package:flowy_infra/color.dart';
 import 'package:flutter/cupertino.dart';
 import 'package:flutter/material.dart';
-import 'package:infra/color.dart';
 
 enum ThemeType {
   light,

+ 0 - 0
app_flowy/packages/flowy_style/lib/time/duration.dart → app_flowy/packages/flowy_infra/lib/time/duration.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/time/prelude.dart → app_flowy/packages/flowy_infra/lib/time/prelude.dart


+ 0 - 0
app_flowy/packages/infra/lib/uuid.dart → app_flowy/packages/flowy_infra/lib/uuid.dart


+ 14 - 7
app_flowy/packages/infra/pubspec.lock → app_flowy/packages/flowy_infra/pubspec.lock

@@ -7,7 +7,7 @@ packages:
       name: async
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.6.1"
+    version: "2.7.0"
   boolean_selector:
     dependency: transitive
     description:
@@ -28,7 +28,7 @@ packages:
       name: charcode
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "1.2.0"
+    version: "1.3.1"
   clock:
     dependency: transitive
     description:
@@ -68,7 +68,7 @@ packages:
       name: flutter_lints
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "1.0.3"
+    version: "1.0.4"
   flutter_test:
     dependency: "direct dev"
     description: flutter
@@ -94,7 +94,7 @@ packages:
       name: meta
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "1.3.0"
+    version: "1.4.0"
   path:
     dependency: transitive
     description:
@@ -148,9 +148,16 @@ packages:
       name: test_api
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "0.3.0"
+    version: "0.4.1"
+  textstyle_extensions:
+    dependency: "direct dev"
+    description:
+      name: textstyle_extensions
+      url: "https://pub.dartlang.org"
+    source: hosted
+    version: "2.0.0-nullsafety"
   time:
-    dependency: "direct main"
+    dependency: "direct dev"
     description:
       name: time
       url: "https://pub.dartlang.org"
@@ -164,7 +171,7 @@ packages:
     source: hosted
     version: "1.3.0"
   uuid:
-    dependency: "direct main"
+    dependency: "direct dev"
     description:
       name: uuid
       url: "https://pub.dartlang.org"

+ 5 - 5
app_flowy/packages/infra/pubspec.yaml → app_flowy/packages/flowy_infra/pubspec.yaml

@@ -1,8 +1,7 @@
-name: infra
+name: flowy_infra
 description: A new Flutter package project.
 version: 0.0.1
 homepage:
-publish_to: 'none'
 
 environment:
   sdk: ">=2.12.0 <3.0.0"
@@ -11,13 +10,14 @@ environment:
 dependencies:
   flutter:
     sdk: flutter
-  time: '>=2.0.0'
-  uuid: ">=2.2.2"
-  
+
 dev_dependencies:
   flutter_test:
     sdk: flutter
   flutter_lints: ^1.0.0
+  time: '>=2.0.0'
+  uuid: ">=2.2.2"
+  textstyle_extensions: '2.0.0-nullsafety'
 
 # For information on the generic Dart part of this file, see the
 # following page: https://dart.dev/tools/pub/pubspec

+ 0 - 0
app_flowy/packages/flowy_style/test/flowy_style_test.dart → app_flowy/packages/flowy_infra/test/flowy_infra_test.dart


+ 0 - 0
app_flowy/packages/infra/.gitignore → app_flowy/packages/flowy_infra_ui/.gitignore


+ 1 - 1
app_flowy/packages/infra/.metadata → app_flowy/packages/flowy_infra_ui/.metadata

@@ -4,7 +4,7 @@
 # This file should be version controlled and should not be manually edited.
 
 version:
-  revision: fa5883b78e566877613ad1ccb48dd92075cb5c23
+  revision: 96bbcd006fafade4ad7a4abde77cec32df6846ea
   channel: dev
 
 project_type: package

+ 0 - 0
app_flowy/packages/infra/CHANGELOG.md → app_flowy/packages/flowy_infra_ui/CHANGELOG.md


+ 0 - 0
app_flowy/packages/infra/LICENSE → app_flowy/packages/flowy_infra_ui/LICENSE


+ 39 - 0
app_flowy/packages/flowy_infra_ui/README.md

@@ -0,0 +1,39 @@
+<!-- 
+This README describes the package. If you publish this package to pub.dev,
+this README's contents appear on the landing page for your package.
+
+For information about how to write a good package README, see the guide for
+[writing package pages](https://dart.dev/guides/libraries/writing-package-pages). 
+
+For general information about developing packages, see the Dart guide for
+[creating packages](https://dart.dev/guides/libraries/create-library-packages)
+and the Flutter guide for
+[developing packages and plugins](https://flutter.dev/developing-packages). 
+-->
+
+TODO: Put a short description of the package here that helps potential users
+know whether this package might be useful for them.
+
+## Features
+
+TODO: List what your package can do. Maybe include images, gifs, or videos.
+
+## Getting started
+
+TODO: List prerequisites and provide or point to information on how to
+start using the package.
+
+## Usage
+
+TODO: Include short and useful examples for package users. Add longer examples
+to `/example` folder. 
+
+```dart
+const like = 'sample';
+```
+
+## Additional information
+
+TODO: Tell users more about the package: where to find more information, how to 
+contribute to the package, how to file issues, what response they can expect 
+from the package authors, and more.

+ 0 - 5
app_flowy/packages/flowy_style/analysis_options.yaml → app_flowy/packages/flowy_infra_ui/analysis_options.yaml

@@ -1,9 +1,4 @@
 include: package:flutter_lints/flutter.yaml
 
-analyzer:
-  exclude:
-    - "**/*.g.dart"
-    - "**/*.freezed.dart"
-    
 # Additional information about this file can be found at
 # https://dart.dev/guides/language/analysis-options

+ 0 - 0
app_flowy/packages/flowy_style/lib/scrolling/styled_list.dart → app_flowy/packages/flowy_infra_ui/lib/styles/scrolling/styled_list.dart


+ 3 - 4
app_flowy/packages/flowy_style/lib/scrolling/styled_scroll_bar.dart → app_flowy/packages/flowy_infra_ui/lib/styles/scrolling/styled_scroll_bar.dart

@@ -1,8 +1,7 @@
 import 'dart:math';
-
-import 'package:flowy_style/mouse_hover_builder.dart';
-import 'package:flowy_style/size.dart';
-import 'package:flowy_style/theme.dart';
+import 'package:flowy_infra/size.dart';
+import 'package:flowy_infra/theme.dart';
+import 'package:flowy_infra_ui/widget/mouse_hover_builder.dart';
 import 'package:flutter/material.dart';
 import 'package:provider/provider.dart';
 import 'package:styled_widget/styled_widget.dart';

+ 0 - 0
app_flowy/packages/flowy_style/lib/scrolling/styled_scrollview.dart → app_flowy/packages/flowy_infra_ui/lib/styles/scrolling/styled_scrollview.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/styled_bar_title.dart → app_flowy/packages/flowy_infra_ui/lib/styles/styled_bar_title.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/styled_close_button.dart → app_flowy/packages/flowy_infra_ui/lib/styles/styled_close_button.dart


+ 1 - 1
app_flowy/packages/flowy_style/lib/styled_container.dart → app_flowy/packages/flowy_infra_ui/lib/styles/styled_container.dart

@@ -1,4 +1,4 @@
-import 'package:flowy_style/time/duration.dart';
+import 'package:flowy_infra/time/duration.dart';
 import 'package:flutter/material.dart';
 
 class StyledContainer extends StatelessWidget {

+ 1 - 1
app_flowy/packages/flowy_style/lib/styled_image_icon.dart → app_flowy/packages/flowy_infra_ui/lib/styles/styled_image_icon.dart

@@ -1,4 +1,4 @@
-import 'package:flowy_style/size.dart';
+import 'package:flowy_infra/size.dart';
 import 'package:flutter/material.dart';
 
 class StyledImageIcon extends StatelessWidget {

+ 3 - 3
app_flowy/packages/flowy_style/lib/styled_text_input.dart → app_flowy/packages/flowy_infra_ui/lib/styles/styled_text_input.dart

@@ -1,8 +1,8 @@
 import 'dart:async';
 import 'dart:math' as math;
-import 'package:flowy_style/size.dart';
-import 'package:flowy_style/text_style.dart';
-import 'package:flowy_style/theme.dart';
+import 'package:flowy_infra/size.dart';
+import 'package:flowy_infra/text_style.dart';
+import 'package:flowy_infra/theme.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 import 'package:provider/provider.dart';

+ 3 - 3
app_flowy/packages/flowy_style/lib/buttons/base_styled_button.dart → app_flowy/packages/flowy_infra_ui/lib/widget/buttons/base_styled_button.dart

@@ -1,6 +1,6 @@
-import 'package:flowy_style/size.dart';
-import 'package:flowy_style/text_style.dart';
-import 'package:flowy_style/theme.dart';
+import 'package:flowy_infra/size.dart';
+import 'package:flowy_infra/text_style.dart';
+import 'package:flowy_infra/theme.dart';
 import 'package:flutter/foundation.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter/rendering.dart';

+ 3 - 4
app_flowy/packages/flowy_style/lib/buttons/ok_cancel_button.dart → app_flowy/packages/flowy_infra_ui/lib/widget/buttons/ok_cancel_button.dart

@@ -1,8 +1,7 @@
-import 'package:flowy_style/size.dart';
-import 'package:flowy_style/spacing.dart';
-import 'package:flowy_style/strings.dart';
+import 'package:flowy_infra/size.dart';
+import 'package:flowy_infra/strings.dart';
+import 'package:flowy_infra_ui/widget/spacing.dart';
 import 'package:flutter/material.dart';
-
 import 'primary_button.dart';
 import 'secondary_button.dart';
 

+ 3 - 3
app_flowy/packages/flowy_style/lib/buttons/primary_button.dart → app_flowy/packages/flowy_infra_ui/lib/widget/buttons/primary_button.dart

@@ -1,8 +1,8 @@
 import 'package:flutter/material.dart';
 import 'package:provider/provider.dart';
-import '../size.dart';
-import '../text_style.dart';
-import '../theme.dart';
+import 'package:flowy_infra/size.dart';
+import 'package:flowy_infra/text_style.dart';
+import 'package:flowy_infra/theme.dart';
 import 'base_styled_button.dart';
 // ignore: import_of_legacy_library_into_null_safe
 import 'package:textstyle_extensions/textstyle_extensions.dart';

+ 4 - 5
app_flowy/packages/flowy_style/lib/buttons/secondary_button.dart → app_flowy/packages/flowy_infra_ui/lib/widget/buttons/secondary_button.dart

@@ -1,12 +1,11 @@
+import 'package:flowy_infra_ui/styles/styled_image_icon.dart';
 import 'package:flutter/material.dart';
 import 'package:provider/provider.dart';
 // ignore: import_of_legacy_library_into_null_safe
 import 'package:textstyle_extensions/textstyle_extensions.dart';
-
-import '../size.dart';
-import '../styled_image_icon.dart';
-import '../text_style.dart';
-import '../theme.dart';
+import 'package:flowy_infra/size.dart';
+import 'package:flowy_infra/text_style.dart';
+import 'package:flowy_infra/theme.dart';
 import 'base_styled_button.dart';
 
 class SecondaryTextButton extends StatelessWidget {

+ 0 - 0
app_flowy/packages/flowy_style/lib/clickable_extension.dart → app_flowy/packages/flowy_infra_ui/lib/widget/clickable_extension.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/constraint_flex_view.dart → app_flowy/packages/flowy_infra_ui/lib/widget/constraint_flex_view.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/dialog/dialog_context.dart → app_flowy/packages/flowy_infra_ui/lib/widget/dialog/dialog_context.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/dialog/dialog_size.dart → app_flowy/packages/flowy_infra_ui/lib/widget/dialog/dialog_size.dart


+ 7 - 7
app_flowy/packages/flowy_style/lib/dialog/styled_dialogs.dart → app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart

@@ -1,10 +1,10 @@
-import 'package:flowy_style/buttons/ok_cancel_button.dart';
-import 'package:flowy_style/dialog/dialog_size.dart';
-import 'package:flowy_style/scrolling/styled_list.dart';
-import 'package:flowy_style/size.dart';
-import 'package:flowy_style/spacing.dart';
-import 'package:flowy_style/text_style.dart';
-import 'package:flowy_style/theme.dart';
+import 'package:flowy_infra_ui/styles/scrolling/styled_list.dart';
+import 'package:flowy_infra/size.dart';
+import 'package:flowy_infra/text_style.dart';
+import 'package:flowy_infra/theme.dart';
+import 'package:flowy_infra_ui/widget/buttons/ok_cancel_button.dart';
+import 'package:flowy_infra_ui/widget/dialog/dialog_size.dart';
+import 'package:flowy_infra_ui/widget/spacing.dart';
 import 'package:flutter/material.dart';
 import 'package:provider/provider.dart';
 // ignore: import_of_legacy_library_into_null_safe

+ 0 - 0
app_flowy/packages/flowy_style/lib/mouse_hover_builder.dart → app_flowy/packages/flowy_infra_ui/lib/widget/mouse_hover_builder.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/rounded_button.dart → app_flowy/packages/flowy_infra_ui/lib/widget/rounded_button.dart


+ 1 - 1
app_flowy/packages/flowy_style/lib/rounded_input_field.dart → app_flowy/packages/flowy_infra_ui/lib/widget/rounded_input_field.dart

@@ -1,4 +1,4 @@
-import 'package:flowy_style/text_field_container.dart';
+import 'package:flowy_infra_ui/widget/text_field_container.dart';
 import 'package:flutter/material.dart';
 
 class RoundedInputField extends StatelessWidget {

+ 0 - 0
app_flowy/packages/flowy_style/lib/route/animation.dart → app_flowy/packages/flowy_infra_ui/lib/widget/route/animation.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/seperated_column.dart → app_flowy/packages/flowy_infra_ui/lib/widget/seperated_column.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/spacing.dart → app_flowy/packages/flowy_infra_ui/lib/widget/spacing.dart


+ 0 - 0
app_flowy/packages/flowy_style/lib/text_field_container.dart → app_flowy/packages/flowy_infra_ui/lib/widget/text_field_container.dart


+ 9 - 30
app_flowy/packages/flowy_style/pubspec.lock → app_flowy/packages/flowy_infra_ui/pubspec.lock

@@ -7,7 +7,7 @@ packages:
       name: animations
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.0.0"
+    version: "2.0.1"
   async:
     dependency: transitive
     description:
@@ -50,13 +50,6 @@ packages:
       url: "https://pub.dartlang.org"
     source: hosted
     version: "1.15.0"
-  crypto:
-    dependency: transitive
-    description:
-      name: crypto
-      url: "https://pub.dartlang.org"
-    source: hosted
-    version: "3.0.1"
   dartz:
     dependency: "direct main"
     description:
@@ -78,6 +71,13 @@ packages:
       url: "https://pub.dartlang.org"
     source: hosted
     version: "1.2.0"
+  flowy_infra:
+    dependency: "direct main"
+    description:
+      path: "../flowy_infra"
+      relative: true
+    source: path
+    version: "0.0.1"
   flutter:
     dependency: "direct main"
     description: flutter
@@ -89,19 +89,12 @@ packages:
       name: flutter_lints
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "1.0.3"
+    version: "1.0.4"
   flutter_test:
     dependency: "direct dev"
     description: flutter
     source: sdk
     version: "0.0.0"
-  infra:
-    dependency: "direct main"
-    description:
-      path: "../infra"
-      relative: true
-    source: path
-    version: "0.0.1"
   lint:
     dependency: transitive
     description:
@@ -212,13 +205,6 @@ packages:
       url: "https://pub.dartlang.org"
     source: hosted
     version: "2.0.0-nullsafety"
-  time:
-    dependency: "direct main"
-    description:
-      name: time
-      url: "https://pub.dartlang.org"
-    source: hosted
-    version: "2.0.0"
   typed_data:
     dependency: transitive
     description:
@@ -226,13 +212,6 @@ packages:
       url: "https://pub.dartlang.org"
     source: hosted
     version: "1.3.0"
-  uuid:
-    dependency: transitive
-    description:
-      name: uuid
-      url: "https://pub.dartlang.org"
-    source: hosted
-    version: "3.0.4"
   vector_math:
     dependency: transitive
     description:

+ 5 - 5
app_flowy/packages/flowy_style/pubspec.yaml → app_flowy/packages/flowy_infra_ui/pubspec.yaml

@@ -1,4 +1,4 @@
-name: flowy_style
+name: flowy_infra_ui
 description: A new Flutter package project.
 version: 0.0.1
 homepage:
@@ -11,20 +11,20 @@ environment:
 dependencies:
   flutter:
     sdk: flutter
-  infra:
-    path: ../infra
-  time: '>=2.0.0'
   textstyle_extensions: '2.0.0-nullsafety'
-  animations: ^2.0.0
   dartz: '0.10.0-nullsafety.2'
   provider: ^5.0.0
   styled_widget: '>=0.3.1'
   equatable: '>=2.0.2'
+  animations: ^2.0.0
+  flowy_infra:
+    path: ../flowy_infra
 
 dev_dependencies:
   flutter_test:
     sdk: flutter
   flutter_lints: ^1.0.0
+  
 
 # For information on the generic Dart part of this file, see the
 # following page: https://dart.dev/tools/pub/pubspec

+ 0 - 0
app_flowy/packages/infra/test/infra_test.dart → app_flowy/packages/flowy_infra_ui/test/flowy_ui_test.dart


+ 0 - 21
app_flowy/packages/flowy_sdk/example/pubspec.lock

@@ -147,13 +147,6 @@ packages:
     description: flutter
     source: sdk
     version: "0.0.0"
-  infra:
-    dependency: transitive
-    description:
-      path: "../../infra"
-      relative: true
-    source: path
-    version: "0.0.1"
   integration_test:
     dependency: "direct dev"
     description: flutter
@@ -283,13 +276,6 @@ packages:
       url: "https://pub.dartlang.org"
     source: hosted
     version: "0.4.1"
-  time:
-    dependency: transitive
-    description:
-      name: time
-      url: "https://pub.dartlang.org"
-    source: hosted
-    version: "2.0.0"
   typed_data:
     dependency: transitive
     description:
@@ -297,13 +283,6 @@ packages:
       url: "https://pub.dartlang.org"
     source: hosted
     version: "1.3.0"
-  uuid:
-    dependency: transitive
-    description:
-      name: uuid
-      url: "https://pub.dartlang.org"
-    source: hosted
-    version: "3.0.4"
   vector_math:
     dependency: transitive
     description:

+ 0 - 21
app_flowy/packages/flowy_sdk/pubspec.lock

@@ -256,13 +256,6 @@ packages:
       url: "https://pub.dartlang.org"
     source: hosted
     version: "3.1.4"
-  infra:
-    dependency: "direct main"
-    description:
-      path: "../infra"
-      relative: true
-    source: path
-    version: "0.0.1"
   io:
     dependency: transitive
     description:
@@ -450,13 +443,6 @@ packages:
       url: "https://pub.dartlang.org"
     source: hosted
     version: "0.4.1"
-  time:
-    dependency: transitive
-    description:
-      name: time
-      url: "https://pub.dartlang.org"
-    source: hosted
-    version: "2.0.0"
   timing:
     dependency: transitive
     description:
@@ -471,13 +457,6 @@ packages:
       url: "https://pub.dartlang.org"
     source: hosted
     version: "1.3.0"
-  uuid:
-    dependency: transitive
-    description:
-      name: uuid
-      url: "https://pub.dartlang.org"
-    source: hosted
-    version: "3.0.4"
   vector_math:
     dependency: transitive
     description:

+ 0 - 2
app_flowy/packages/flowy_sdk/pubspec.yaml

@@ -16,8 +16,6 @@ dependencies:
   protobuf: "2.0.0"
   flowy_logger:
     path: ../flowy_logger
-  infra:
-    path: ../infra
   dartz: '0.10.0-nullsafety.2'
   freezed_annotation: ^0.14.1
     

+ 0 - 14
app_flowy/packages/flowy_style/README.md

@@ -1,14 +0,0 @@
-# flowy_style
-
-A new Flutter package project.
-
-## Getting Started
-
-This project is a starting point for a Dart
-[package](https://flutter.dev/developing-packages/),
-a library module containing code that can be shared easily across
-multiple Flutter or Dart projects.
-
-For help getting started with Flutter, view our 
-[online documentation](https://flutter.dev/docs), which offers tutorials, 
-samples, guidance on mobile development, and a full API reference.

+ 0 - 14
app_flowy/packages/infra/README.md

@@ -1,14 +0,0 @@
-# infra
-
-A new Flutter package project.
-
-## Getting Started
-
-This project is a starting point for a Dart
-[package](https://flutter.dev/developing-packages/),
-a library module containing code that can be shared easily across
-multiple Flutter or Dart projects.
-
-For help getting started with Flutter, view our 
-[online documentation](https://flutter.dev/docs), which offers tutorials, 
-samples, guidance on mobile development, and a full API reference.

+ 14 - 21
app_flowy/pubspec.lock

@@ -21,7 +21,7 @@ packages:
       name: animations
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.0.0"
+    version: "2.0.1"
   args:
     dependency: transitive
     description:
@@ -239,24 +239,31 @@ packages:
       relative: true
     source: path
     version: "0.0.1"
-  flowy_logger:
+  flowy_infra:
     dependency: "direct main"
     description:
-      path: "packages/flowy_logger"
+      path: "packages/flowy_infra"
       relative: true
     source: path
     version: "0.0.1"
-  flowy_sdk:
+  flowy_infra_ui:
     dependency: "direct main"
     description:
-      path: "packages/flowy_sdk"
+      path: "packages/flowy_infra_ui"
+      relative: true
+    source: path
+    version: "0.0.1"
+  flowy_logger:
+    dependency: "direct main"
+    description:
+      path: "packages/flowy_logger"
       relative: true
     source: path
     version: "0.0.1"
-  flowy_style:
+  flowy_sdk:
     dependency: "direct main"
     description:
-      path: "packages/flowy_style"
+      path: "packages/flowy_sdk"
       relative: true
     source: path
     version: "0.0.1"
@@ -373,13 +380,6 @@ packages:
       url: "https://pub.dartlang.org"
     source: hosted
     version: "4.0.0"
-  infra:
-    dependency: transitive
-    description:
-      path: "packages/infra"
-      relative: true
-    source: path
-    version: "0.0.1"
   io:
     dependency: transitive
     description:
@@ -779,13 +779,6 @@ packages:
       url: "https://pub.dartlang.org"
     source: hosted
     version: "2.0.0"
-  uuid:
-    dependency: transitive
-    description:
-      name: uuid
-      url: "https://pub.dartlang.org"
-    source: hosted
-    version: "3.0.4"
   vector_math:
     dependency: transitive
     description:

+ 4 - 2
app_flowy/pubspec.yaml

@@ -31,12 +31,14 @@ dependencies:
     sdk: flutter
   flowy_sdk:
     path: packages/flowy_sdk
-  flowy_style:
-    path: packages/flowy_style
   flowy_editor:
     path: packages/flowy_editor
   flowy_logger:
     path: packages/flowy_logger
+  flowy_infra_ui:
+    path: packages/flowy_infra_ui
+  flowy_infra:
+    path: packages/flowy_infra
   
   #  third party packages
   time: '>=2.0.0'