Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80135a611d
|
||
|
|
93873e3134
|
||
|
|
553b6763af
|
||
|
|
cfcf9e75f8
|
||
|
|
0a11157cd0
|
||
|
|
d3184eb3e1 |
@@ -584,7 +584,6 @@ new_version.sh
|
|||||||
.latest_version
|
.latest_version
|
||||||
.vscode/
|
.vscode/
|
||||||
example/
|
example/
|
||||||
models/
|
|
||||||
build/
|
build/
|
||||||
*.iml
|
*.iml
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,59 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## 2023-05-06
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Packages with breaking changes:
|
||||||
|
|
||||||
|
- There are no breaking changes in this release.
|
||||||
|
|
||||||
|
Packages with other changes:
|
||||||
|
|
||||||
|
- [`wyatt_authentication_bloc` - `v0.5.0+1`](#wyatt_authentication_bloc---v0501)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### `wyatt_authentication_bloc` - `v0.5.0+1`
|
||||||
|
|
||||||
|
- **REFACTOR**(authentication): controle cache checking.
|
||||||
|
|
||||||
|
|
||||||
|
## 2023-05-04
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Packages with breaking changes:
|
||||||
|
|
||||||
|
- There are no breaking changes in this release.
|
||||||
|
|
||||||
|
Packages with other changes:
|
||||||
|
|
||||||
|
- [`wyatt_ui_components` - `v0.2.1`](#wyatt_ui_components---v021)
|
||||||
|
- [`wyatt_bloc_layout` - `v0.1.0+1`](#wyatt_bloc_layout---v0101)
|
||||||
|
- [`wyatt_ui_kit` - `v3.0.1`](#wyatt_ui_kit---v301)
|
||||||
|
- [`wyatt_ui_layout` - `v0.1.0+1`](#wyatt_ui_layout---v0101)
|
||||||
|
|
||||||
|
Packages with dependency updates only:
|
||||||
|
|
||||||
|
> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
|
||||||
|
|
||||||
|
- `wyatt_bloc_layout` - `v0.1.0+1`
|
||||||
|
- `wyatt_ui_kit` - `v3.0.1`
|
||||||
|
- `wyatt_ui_layout` - `v0.1.0+1`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### `wyatt_ui_components` - `v0.2.1`
|
||||||
|
|
||||||
|
- **FEAT**: add floating action button component (close #191). (d3184eb3)
|
||||||
|
|
||||||
|
|
||||||
## 2023-05-03
|
## 2023-05-03
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|||||||
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
name: Wyatt-Packages
|
name: Wyatt-Packages
|
||||||
#repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages Gitea not yet supported
|
# repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages
|
||||||
|
|
||||||
sdkPath: auto
|
sdkPath: auto
|
||||||
|
|
||||||
@@ -15,10 +15,10 @@ command:
|
|||||||
updateGitTagRefs: true
|
updateGitTagRefs: true
|
||||||
linkToCommits: false # Gitea not yet supported
|
linkToCommits: false # Gitea not yet supported
|
||||||
workspaceChangelog: true
|
workspaceChangelog: true
|
||||||
includeCommitId: true
|
includeCommitId: false # Generate error in Melos 3...
|
||||||
branch: master
|
branch: master
|
||||||
message: |
|
message: |
|
||||||
chore(release): publish packages 🎉
|
chore(release): publish packages
|
||||||
|
|
||||||
{new_package_versions}
|
{new_package_versions}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
## 0.5.0+1
|
||||||
|
|
||||||
|
- **REFACTOR**(authentication): controle cache checking.
|
||||||
|
|
||||||
## 0.5.0
|
## 0.5.0
|
||||||
|
|
||||||
> Note: This release has breaking changes.
|
> Note: This release has breaking changes.
|
||||||
|
|||||||
+11
-1
@@ -40,6 +40,7 @@ abstract class AuthenticationCubit<Data>
|
|||||||
/// {@macro authentication_cubit}
|
/// {@macro authentication_cubit}
|
||||||
AuthenticationCubit({
|
AuthenticationCubit({
|
||||||
required this.authenticationRepository,
|
required this.authenticationRepository,
|
||||||
|
this.checkForCachedAccountOnInitialization = true,
|
||||||
}) : super(const AuthenticationState.unknown()) {
|
}) : super(const AuthenticationState.unknown()) {
|
||||||
_init();
|
_init();
|
||||||
}
|
}
|
||||||
@@ -47,6 +48,9 @@ abstract class AuthenticationCubit<Data>
|
|||||||
/// The authentication repository.
|
/// The authentication repository.
|
||||||
final AuthenticationRepository<Data> authenticationRepository;
|
final AuthenticationRepository<Data> authenticationRepository;
|
||||||
|
|
||||||
|
/// Automatically check for cached account on initialization.
|
||||||
|
final bool checkForCachedAccountOnInitialization;
|
||||||
|
|
||||||
/// The latest session.
|
/// The latest session.
|
||||||
AuthenticationSession<Data>? _latestSession;
|
AuthenticationSession<Data>? _latestSession;
|
||||||
|
|
||||||
@@ -56,7 +60,9 @@ abstract class AuthenticationCubit<Data>
|
|||||||
_listenForAuthenticationChanges();
|
_listenForAuthenticationChanges();
|
||||||
|
|
||||||
/// Check if there is a cached account.
|
/// Check if there is a cached account.
|
||||||
await authenticationRepository.checkForCachedAccount();
|
if (checkForCachedAccountOnInitialization) {
|
||||||
|
await checkForCachedAccount();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void _listenForAuthenticationChanges() {
|
void _listenForAuthenticationChanges() {
|
||||||
@@ -148,6 +154,10 @@ abstract class AuthenticationCubit<Data>
|
|||||||
),
|
),
|
||||||
).call();
|
).call();
|
||||||
|
|
||||||
|
/// Checks for cached account.
|
||||||
|
FutureOr<void> checkForCachedAccount() async =>
|
||||||
|
authenticationRepository.checkForCachedAccount();
|
||||||
|
|
||||||
/// Returns latest session.
|
/// Returns latest session.
|
||||||
///
|
///
|
||||||
/// Contains latest event and latest session data (account + extra data)
|
/// Contains latest event and latest session data (account + extra data)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: wyatt_authentication_bloc
|
name: wyatt_authentication_bloc
|
||||||
description: Authentication BLoC for Flutter
|
description: Authentication BLoC for Flutter
|
||||||
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_authentication_bloc
|
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_authentication_bloc
|
||||||
version: 0.5.0
|
version: 0.5.0+1
|
||||||
|
|
||||||
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
## 0.1.0+1
|
||||||
|
|
||||||
|
- Update a dependency to the latest release.
|
||||||
|
|
||||||
## 0.1.0
|
## 0.1.0
|
||||||
|
|
||||||
> Note: This release has breaking changes.
|
> Note: This release has breaking changes.
|
||||||
|
|||||||
@@ -39,13 +39,13 @@ dependencies:
|
|||||||
version: ^2.0.1
|
version: ^2.0.1
|
||||||
wyatt_ui_layout:
|
wyatt_ui_layout:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^0.1.0
|
version: ^0.1.0+1
|
||||||
wyatt_crud_bloc:
|
wyatt_crud_bloc:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^0.1.1
|
version: ^0.1.1
|
||||||
wyatt_ui_components:
|
wyatt_ui_components:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^0.2.0
|
version: ^0.2.1
|
||||||
wyatt_component_copy_with_extension:
|
wyatt_component_copy_with_extension:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^2.0.1
|
version: ^2.0.1
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: wyatt_bloc_layout
|
name: wyatt_bloc_layout
|
||||||
description: Layouts based on bloc helper library
|
description: Layouts based on bloc helper library
|
||||||
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_bloc_layout
|
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_bloc_layout
|
||||||
version: 0.1.0
|
version: 0.1.0+1
|
||||||
|
|
||||||
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ dependencies:
|
|||||||
|
|
||||||
wyatt_ui_layout:
|
wyatt_ui_layout:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^0.1.0
|
version: ^0.1.0+1
|
||||||
|
|
||||||
wyatt_crud_bloc:
|
wyatt_crud_bloc:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
@@ -27,7 +27,7 @@ dependencies:
|
|||||||
|
|
||||||
wyatt_ui_components:
|
wyatt_ui_components:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^0.2.0
|
version: ^0.2.1
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test: { sdk: flutter }
|
flutter_test: { sdk: flutter }
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ dependencies:
|
|||||||
|
|
||||||
wyatt_ui_components:
|
wyatt_ui_components:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^0.2.0
|
version: ^0.2.1
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
build_runner: ^2.3.3
|
build_runner: ^2.3.3
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
## 0.2.1
|
||||||
|
|
||||||
|
- **FEAT**: add floating action button component (close #191). (d3184eb3)
|
||||||
|
|
||||||
## 0.2.0
|
## 0.2.0
|
||||||
|
|
||||||
> Note: This release has breaking changes.
|
> Note: This release has breaking changes.
|
||||||
|
|||||||
+107
@@ -0,0 +1,107 @@
|
|||||||
|
// Copyright (C) 2023 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/>.
|
||||||
|
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:wyatt_component_copy_with_extension/wyatt_component_copy_with_extension.dart';
|
||||||
|
import 'package:wyatt_ui_components/wyatt_ui_components.dart';
|
||||||
|
|
||||||
|
part 'floating_action_button_component.g.dart';
|
||||||
|
|
||||||
|
@ComponentProxyExtension()
|
||||||
|
abstract class FloatingActionButtonComponent extends Component
|
||||||
|
with CopyWithMixin<$FloatingActionButtonComponentCWProxy> {
|
||||||
|
const FloatingActionButtonComponent({
|
||||||
|
this.child,
|
||||||
|
this.tooltip,
|
||||||
|
this.foregroundColor,
|
||||||
|
this.backgroundColor,
|
||||||
|
this.focusColor,
|
||||||
|
this.hoverColor,
|
||||||
|
this.splashColor,
|
||||||
|
this.heroTag,
|
||||||
|
this.onPressed,
|
||||||
|
this.mouseCursor,
|
||||||
|
this.elevation,
|
||||||
|
this.focusElevation,
|
||||||
|
this.hoverElevation,
|
||||||
|
this.highlightElevation,
|
||||||
|
this.disabledElevation,
|
||||||
|
this.mini,
|
||||||
|
this.shape,
|
||||||
|
this.clipBehavior,
|
||||||
|
this.isExtended,
|
||||||
|
this.focusNode,
|
||||||
|
this.autofocus,
|
||||||
|
this.materialTapTargetSize,
|
||||||
|
this.enableFeedback,
|
||||||
|
this.extendedIconLabelSpacing,
|
||||||
|
this.extendedPadding,
|
||||||
|
this.extendedTextStyle,
|
||||||
|
super.key,
|
||||||
|
});
|
||||||
|
|
||||||
|
final Widget? child;
|
||||||
|
|
||||||
|
final String? tooltip;
|
||||||
|
|
||||||
|
final Color? foregroundColor;
|
||||||
|
|
||||||
|
final Color? backgroundColor;
|
||||||
|
|
||||||
|
final Color? focusColor;
|
||||||
|
|
||||||
|
final Color? hoverColor;
|
||||||
|
|
||||||
|
final Color? splashColor;
|
||||||
|
|
||||||
|
final Object? heroTag;
|
||||||
|
|
||||||
|
final VoidCallback? onPressed;
|
||||||
|
|
||||||
|
final MouseCursor? mouseCursor;
|
||||||
|
|
||||||
|
final double? elevation;
|
||||||
|
|
||||||
|
final double? focusElevation;
|
||||||
|
|
||||||
|
final double? hoverElevation;
|
||||||
|
|
||||||
|
final double? highlightElevation;
|
||||||
|
|
||||||
|
final double? disabledElevation;
|
||||||
|
|
||||||
|
final bool? mini;
|
||||||
|
|
||||||
|
final ShapeBorder? shape;
|
||||||
|
|
||||||
|
final Clip? clipBehavior;
|
||||||
|
|
||||||
|
final bool? isExtended;
|
||||||
|
|
||||||
|
final FocusNode? focusNode;
|
||||||
|
|
||||||
|
final bool? autofocus;
|
||||||
|
|
||||||
|
final MaterialTapTargetSize? materialTapTargetSize;
|
||||||
|
|
||||||
|
final bool? enableFeedback;
|
||||||
|
|
||||||
|
final double? extendedIconLabelSpacing;
|
||||||
|
|
||||||
|
final EdgeInsetsGeometry? extendedPadding;
|
||||||
|
|
||||||
|
final TextStyle? extendedTextStyle;
|
||||||
|
}
|
||||||
+69
@@ -0,0 +1,69 @@
|
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||||
|
|
||||||
|
part of 'floating_action_button_component.dart';
|
||||||
|
|
||||||
|
// **************************************************************************
|
||||||
|
// ComponentProxyGenerator
|
||||||
|
// **************************************************************************
|
||||||
|
|
||||||
|
abstract class $FloatingActionButtonComponentCWProxy {
|
||||||
|
FloatingActionButtonComponent child(Widget? child);
|
||||||
|
FloatingActionButtonComponent tooltip(String? tooltip);
|
||||||
|
FloatingActionButtonComponent foregroundColor(Color? foregroundColor);
|
||||||
|
FloatingActionButtonComponent backgroundColor(Color? backgroundColor);
|
||||||
|
FloatingActionButtonComponent focusColor(Color? focusColor);
|
||||||
|
FloatingActionButtonComponent hoverColor(Color? hoverColor);
|
||||||
|
FloatingActionButtonComponent splashColor(Color? splashColor);
|
||||||
|
FloatingActionButtonComponent heroTag(Object? heroTag);
|
||||||
|
FloatingActionButtonComponent onPressed(void Function()? onPressed);
|
||||||
|
FloatingActionButtonComponent mouseCursor(MouseCursor? mouseCursor);
|
||||||
|
FloatingActionButtonComponent elevation(double? elevation);
|
||||||
|
FloatingActionButtonComponent focusElevation(double? focusElevation);
|
||||||
|
FloatingActionButtonComponent hoverElevation(double? hoverElevation);
|
||||||
|
FloatingActionButtonComponent highlightElevation(double? highlightElevation);
|
||||||
|
FloatingActionButtonComponent disabledElevation(double? disabledElevation);
|
||||||
|
FloatingActionButtonComponent mini(bool? mini);
|
||||||
|
FloatingActionButtonComponent shape(ShapeBorder? shape);
|
||||||
|
FloatingActionButtonComponent clipBehavior(Clip? clipBehavior);
|
||||||
|
FloatingActionButtonComponent isExtended(bool? isExtended);
|
||||||
|
FloatingActionButtonComponent focusNode(FocusNode? focusNode);
|
||||||
|
FloatingActionButtonComponent autofocus(bool? autofocus);
|
||||||
|
FloatingActionButtonComponent materialTapTargetSize(
|
||||||
|
MaterialTapTargetSize? materialTapTargetSize);
|
||||||
|
FloatingActionButtonComponent enableFeedback(bool? enableFeedback);
|
||||||
|
FloatingActionButtonComponent extendedIconLabelSpacing(
|
||||||
|
double? extendedIconLabelSpacing);
|
||||||
|
FloatingActionButtonComponent extendedPadding(
|
||||||
|
EdgeInsetsGeometry? extendedPadding);
|
||||||
|
FloatingActionButtonComponent extendedTextStyle(TextStyle? extendedTextStyle);
|
||||||
|
FloatingActionButtonComponent key(Key? key);
|
||||||
|
FloatingActionButtonComponent call({
|
||||||
|
Widget? child,
|
||||||
|
String? tooltip,
|
||||||
|
Color? foregroundColor,
|
||||||
|
Color? backgroundColor,
|
||||||
|
Color? focusColor,
|
||||||
|
Color? hoverColor,
|
||||||
|
Color? splashColor,
|
||||||
|
Object? heroTag,
|
||||||
|
void Function()? onPressed,
|
||||||
|
MouseCursor? mouseCursor,
|
||||||
|
double? elevation,
|
||||||
|
double? focusElevation,
|
||||||
|
double? hoverElevation,
|
||||||
|
double? highlightElevation,
|
||||||
|
double? disabledElevation,
|
||||||
|
bool? mini,
|
||||||
|
ShapeBorder? shape,
|
||||||
|
Clip? clipBehavior,
|
||||||
|
bool? isExtended,
|
||||||
|
FocusNode? focusNode,
|
||||||
|
bool? autofocus,
|
||||||
|
MaterialTapTargetSize? materialTapTargetSize,
|
||||||
|
bool? enableFeedback,
|
||||||
|
double? extendedIconLabelSpacing,
|
||||||
|
EdgeInsetsGeometry? extendedPadding,
|
||||||
|
TextStyle? extendedTextStyle,
|
||||||
|
Key? key,
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
import 'package:copy_with_extension/copy_with_extension.dart';
|
import 'package:copy_with_extension/copy_with_extension.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:wyatt_ui_components/src/domain/entities/entities.dart';
|
import 'package:wyatt_ui_components/src/domain/entities/entities.dart';
|
||||||
|
import 'package:wyatt_ui_components/src/domain/entities/floating_buttons/floating_action_button_component.dart';
|
||||||
part 'component_theme_data.g.dart';
|
part 'component_theme_data.g.dart';
|
||||||
|
|
||||||
/// {@template component_theme_data}
|
/// {@template component_theme_data}
|
||||||
@@ -41,6 +42,7 @@ class ComponentThemeData {
|
|||||||
PortfolioCardComponent? portfolioCard,
|
PortfolioCardComponent? portfolioCard,
|
||||||
QuoteCardComponent? quoteCard,
|
QuoteCardComponent? quoteCard,
|
||||||
SkillCardComponent? skillCard,
|
SkillCardComponent? skillCard,
|
||||||
|
FloatingActionButtonComponent? floatingActionButton,
|
||||||
}) =>
|
}) =>
|
||||||
ComponentThemeData.raw(
|
ComponentThemeData.raw(
|
||||||
topAppBar: topAppBar,
|
topAppBar: topAppBar,
|
||||||
@@ -58,6 +60,7 @@ class ComponentThemeData {
|
|||||||
portfolioCard: portfolioCard,
|
portfolioCard: portfolioCard,
|
||||||
quoteCard: quoteCard,
|
quoteCard: quoteCard,
|
||||||
skillCard: skillCard,
|
skillCard: skillCard,
|
||||||
|
floatingActionButton: floatingActionButton,
|
||||||
);
|
);
|
||||||
|
|
||||||
/// {@macro component_theme_data}
|
/// {@macro component_theme_data}
|
||||||
@@ -78,6 +81,7 @@ class ComponentThemeData {
|
|||||||
portfolioCard: other.portfolioCard,
|
portfolioCard: other.portfolioCard,
|
||||||
quoteCard: other.quoteCard,
|
quoteCard: other.quoteCard,
|
||||||
skillCard: other.skillCard,
|
skillCard: other.skillCard,
|
||||||
|
floatingActionButton: other.floatingActionButton,
|
||||||
);
|
);
|
||||||
|
|
||||||
/// Create a [ComponentThemeData] given a set of exact values. Most values
|
/// Create a [ComponentThemeData] given a set of exact values. Most values
|
||||||
@@ -102,6 +106,7 @@ class ComponentThemeData {
|
|||||||
this.portfolioCard,
|
this.portfolioCard,
|
||||||
this.quoteCard,
|
this.quoteCard,
|
||||||
this.skillCard,
|
this.skillCard,
|
||||||
|
this.floatingActionButton,
|
||||||
});
|
});
|
||||||
|
|
||||||
R _get<T extends Component, R>(T? component, R? returned) {
|
R _get<T extends Component, R>(T? component, R? returned) {
|
||||||
@@ -173,4 +178,8 @@ class ComponentThemeData {
|
|||||||
final SymbolButtonComponent? symbolButton;
|
final SymbolButtonComponent? symbolButton;
|
||||||
$SymbolButtonComponentCWProxy get symbolButtonComponent =>
|
$SymbolButtonComponentCWProxy get symbolButtonComponent =>
|
||||||
_get(symbolButton, symbolButton?.copyWith);
|
_get(symbolButton, symbolButton?.copyWith);
|
||||||
|
|
||||||
|
final FloatingActionButtonComponent? floatingActionButton;
|
||||||
|
$FloatingActionButtonComponentCWProxy get floatingActionButtonComponent =>
|
||||||
|
_get(floatingActionButton, floatingActionButton?.copyWith);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,9 @@ abstract class _$ComponentThemeDataCWProxy {
|
|||||||
|
|
||||||
ComponentThemeData skillCard(SkillCardComponent? skillCard);
|
ComponentThemeData skillCard(SkillCardComponent? skillCard);
|
||||||
|
|
||||||
|
ComponentThemeData floatingActionButton(
|
||||||
|
FloatingActionButtonComponent? floatingActionButton);
|
||||||
|
|
||||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ComponentThemeData(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ComponentThemeData(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||||
///
|
///
|
||||||
/// Usage
|
/// Usage
|
||||||
@@ -63,6 +66,7 @@ abstract class _$ComponentThemeDataCWProxy {
|
|||||||
PortfolioCardComponent? portfolioCard,
|
PortfolioCardComponent? portfolioCard,
|
||||||
QuoteCardComponent? quoteCard,
|
QuoteCardComponent? quoteCard,
|
||||||
SkillCardComponent? skillCard,
|
SkillCardComponent? skillCard,
|
||||||
|
FloatingActionButtonComponent? floatingActionButton,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,6 +140,11 @@ class _$ComponentThemeDataCWProxyImpl implements _$ComponentThemeDataCWProxy {
|
|||||||
ComponentThemeData skillCard(SkillCardComponent? skillCard) =>
|
ComponentThemeData skillCard(SkillCardComponent? skillCard) =>
|
||||||
this(skillCard: skillCard);
|
this(skillCard: skillCard);
|
||||||
|
|
||||||
|
@override
|
||||||
|
ComponentThemeData floatingActionButton(
|
||||||
|
FloatingActionButtonComponent? floatingActionButton) =>
|
||||||
|
this(floatingActionButton: floatingActionButton);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
||||||
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ComponentThemeData(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ComponentThemeData(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
|
||||||
@@ -160,6 +169,7 @@ class _$ComponentThemeDataCWProxyImpl implements _$ComponentThemeDataCWProxy {
|
|||||||
Object? portfolioCard = const $CopyWithPlaceholder(),
|
Object? portfolioCard = const $CopyWithPlaceholder(),
|
||||||
Object? quoteCard = const $CopyWithPlaceholder(),
|
Object? quoteCard = const $CopyWithPlaceholder(),
|
||||||
Object? skillCard = const $CopyWithPlaceholder(),
|
Object? skillCard = const $CopyWithPlaceholder(),
|
||||||
|
Object? floatingActionButton = const $CopyWithPlaceholder(),
|
||||||
}) {
|
}) {
|
||||||
return ComponentThemeData(
|
return ComponentThemeData(
|
||||||
topAppBar: topAppBar == const $CopyWithPlaceholder()
|
topAppBar: topAppBar == const $CopyWithPlaceholder()
|
||||||
@@ -222,6 +232,10 @@ class _$ComponentThemeDataCWProxyImpl implements _$ComponentThemeDataCWProxy {
|
|||||||
? _value.skillCard
|
? _value.skillCard
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
: skillCard as SkillCardComponent?,
|
: skillCard as SkillCardComponent?,
|
||||||
|
floatingActionButton: floatingActionButton == const $CopyWithPlaceholder()
|
||||||
|
? _value.floatingActionButton
|
||||||
|
// ignore: cast_nullable_to_non_nullable
|
||||||
|
: floatingActionButton as FloatingActionButtonComponent?,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: wyatt_ui_components
|
name: wyatt_ui_components
|
||||||
description: Components that can be implemented in any application with copy constructor.
|
description: Components that can be implemented in any application with copy constructor.
|
||||||
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_ui_components
|
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_ui_components
|
||||||
version: 0.2.0
|
version: 0.2.1
|
||||||
|
|
||||||
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
## 3.0.1
|
||||||
|
|
||||||
|
- Update a dependency to the latest release.
|
||||||
|
|
||||||
## 3.0.0
|
## 3.0.0
|
||||||
|
|
||||||
> Note: This release has breaking changes.
|
> Note: This release has breaking changes.
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ dependencies:
|
|||||||
|
|
||||||
wyatt_ui_components:
|
wyatt_ui_components:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^0.2.0
|
version: ^0.2.1
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test: { sdk: flutter }
|
flutter_test: { sdk: flutter }
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: wyatt_ui_kit
|
name: wyatt_ui_kit
|
||||||
description: UIKit and Design System used in Wyatt Studio.
|
description: UIKit and Design System used in Wyatt Studio.
|
||||||
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_ui_kit
|
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_ui_kit
|
||||||
version: 3.0.0
|
version: 3.0.1
|
||||||
|
|
||||||
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ dependencies:
|
|||||||
version: ^2.0.1
|
version: ^2.0.1
|
||||||
wyatt_ui_components:
|
wyatt_ui_components:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^0.2.0
|
version: ^0.2.1
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
build_runner: ^2.3.3
|
build_runner: ^2.3.3
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
## 0.1.0+1
|
||||||
|
|
||||||
|
- Update a dependency to the latest release.
|
||||||
|
|
||||||
## 0.1.0
|
## 0.1.0
|
||||||
|
|
||||||
> Note: This release has breaking changes.
|
> Note: This release has breaking changes.
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ dependencies:
|
|||||||
|
|
||||||
wyatt_ui_components:
|
wyatt_ui_components:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^0.2.0
|
version: ^0.2.1
|
||||||
wyatt_component_copy_with_extension:
|
wyatt_component_copy_with_extension:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^2.0.1
|
version: ^2.0.1
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: wyatt_ui_layout
|
name: wyatt_ui_layout
|
||||||
description: Main layouts to help you build your application views.
|
description: Main layouts to help you build your application views.
|
||||||
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_ui_layout
|
repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/master/packages/wyatt_ui_layout
|
||||||
version: 0.1.0
|
version: 0.1.0+1
|
||||||
|
|
||||||
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
publish_to: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ dependencies:
|
|||||||
|
|
||||||
wyatt_ui_components:
|
wyatt_ui_components:
|
||||||
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub
|
||||||
version: ^0.2.0
|
version: ^0.2.1
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test: { sdk: flutter }
|
flutter_test: { sdk: flutter }
|
||||||
|
|||||||
Reference in New Issue
Block a user