feat/split-components-and-layouts #65

Merged
hugo merged 3 commits from feat/split-components-and-layouts into master 2022-12-07 20:15:16 +00:00
17 changed files with 21 additions and 39 deletions
Showing only changes of commit a20e4a1715 - Show all commits

View File

@ -14,12 +14,8 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:wyatt_wyatt_ui_components/wyatt_wyatt_ui_components.dart';
void main() { void main() {
runApp(const MyApp()); runApp(const MyApp());
} }
@ -39,9 +35,8 @@ class MyApp extends StatelessWidget {
appBar: AppBar( appBar: AppBar(
title: const Text('Wyatt Ui Components Example'), title: const Text('Wyatt Ui Components Example'),
), ),
body: Center(child: Text(wyatt())), body: const Center(child: Text('')),
), ),
); );
} }
} }

View File

@ -32,7 +32,7 @@ dependencies:
sdk: flutter sdk: flutter
wyatt_wyatt_ui_components: wyatt_ui_components:
path: "../" path: "../"
dev_dependencies: dev_dependencies:

View File

@ -15,8 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:wyatt_wyatt_ui_layout/src/features/component_theme.dart'; import 'package:wyatt_ui_components/src/features/features.dart';
import 'package:wyatt_wyatt_ui_layout/src/features/component_theme_data.dart';
extension ThemeComponentBuildContext on BuildContext { extension ThemeComponentBuildContext on BuildContext {
ComponentThemeData get components => ComponentTheme.of(this); ComponentThemeData get components => ComponentTheme.of(this);

View File

@ -15,7 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:wyatt_wyatt_ui_layout/src/features/component_theme_data.dart'; import 'package:wyatt_ui_components/src/features/features.dart';
class ComponentTheme extends StatelessWidget { class ComponentTheme extends StatelessWidget {
final Widget child; final Widget child;

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
import 'package:wyatt_wyatt_ui_layout/src/domain/entities/components.dart'; import 'package:wyatt_ui_components/src/domain/entities/components.dart';
class ComponentThemeData { class ComponentThemeData {
final AppBarComponent appBar; final AppBarComponent appBar;

View File

@ -1,17 +0,0 @@
// Copyright (C) 2022 WYATT GROUP
// Please see the AUTHORS file for details.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
String wyatt() => "wyatt_wyatt_ui_components";

View File

@ -14,4 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
export 'package.dart'; export 'core/core.dart';
export 'core/core.dart';
export 'domain/domain.dart';
export 'features/features.dart';

View File

@ -15,6 +15,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
/// Wyatt Ui Components /// Wyatt Ui Components
library wyatt_wyatt_ui_components; library wyatt_ui_components;
export 'src/src.dart'; export 'src/src.dart';

View File

@ -1,6 +1,6 @@
name: wyatt_wyatt_ui_components name: wyatt_ui_components
description: Primary ui components description: Primary ui components
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_wyatt_ui_components repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_ui_components
version: 0.0.1 version: 0.0.1
environment: environment:
@ -11,8 +11,6 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
http: ^0.13.4
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:

View File

@ -15,7 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:wyatt_wyatt_ui_layout/src/core/extensions/build_context_extensions.dart'; import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart';
import 'package:wyatt_wyatt_ui_layout/src/presentation/layouts/layout.dart'; import 'package:wyatt_wyatt_ui_layout/src/presentation/layouts/layout.dart';
class AppBarLayout extends Layout { class AppBarLayout extends Layout {

View File

@ -1,5 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:wyatt_wyatt_ui_layout/src/core/core.dart'; import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart';
import 'package:wyatt_wyatt_ui_layout/src/presentation/layouts/layout.dart'; import 'package:wyatt_wyatt_ui_layout/src/presentation/layouts/layout.dart';
class BottomNavigationBarLayout extends Layout { class BottomNavigationBarLayout extends Layout {

View File

@ -14,7 +14,4 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
export 'core/core.dart';
export 'domain/domain.dart';
export 'features/features.dart';
export 'presentation/presentation.dart'; export 'presentation/presentation.dart';

View File

@ -11,12 +11,19 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
wyatt_ui_components:
git:
url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages
path: packages/wyatt_ui_components
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
wyatt_analysis: wyatt_analysis:
git: git:
url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages