flowy_infra & flowy_infra_ui migration

This commit is contained in:
appflowy 2021-07-13 08:47:26 +08:00
parent 02f0eef08b
commit 7a4d950c9c
63 changed files with 171 additions and 192 deletions

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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);

View File

@ -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

View File

@ -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.

View File

@ -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,

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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';

View File

@ -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 {

View File

@ -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 {

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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 {

View File

@ -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

View File

@ -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 {

View File

@ -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:

View File

@ -1,4 +1,4 @@
name: flowy_style
name: flowy_infra_ui
description: A new Flutter package project.
version: 0.0.1
homepage:
@ -11,21 +11,21 @@ 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

View File

@ -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:

View File

@ -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:

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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,6 +239,20 @@ packages:
relative: true
source: path
version: "0.0.1"
flowy_infra:
dependency: "direct main"
description:
path: "packages/flowy_infra"
relative: true
source: path
version: "0.0.1"
flowy_infra_ui:
dependency: "direct main"
description:
path: "packages/flowy_infra_ui"
relative: true
source: path
version: "0.0.1"
flowy_logger:
dependency: "direct main"
description:
@ -253,13 +267,6 @@ packages:
relative: true
source: path
version: "0.0.1"
flowy_style:
dependency: "direct main"
description:
path: "packages/flowy_style"
relative: true
source: path
version: "0.0.1"
flutter:
dependency: "direct main"
description: flutter
@ -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:

View File

@ -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'