master #81

Closed
malo wants to merge 322 commits from master into feat/bloc_layout/new-package
3 changed files with 125 additions and 0 deletions
Showing only changes of commit 41a484c013 - Show all commits

View File

@ -10,6 +10,47 @@ class $CustomAppBarCWProxyImpl implements $AppBarComponentCWProxy {
const $CustomAppBarCWProxyImpl(this._value); const $CustomAppBarCWProxyImpl(this._value);
final CustomAppBar _value; final CustomAppBar _value;
@override @override
CustomAppBar shape(ShapeBorder? shape) => this(shape: shape);
@override
CustomAppBar systemOverlayStyle(SystemUiOverlayStyle? systemOverlayStyle) =>
this(systemOverlayStyle: systemOverlayStyle);
@override
CustomAppBar automaticallyImplyLeading(bool? automaticallyImplyLeading) =>
this(automaticallyImplyLeading: automaticallyImplyLeading);
@override
CustomAppBar flexibleSpace(Widget? flexibleSpace) =>
this(flexibleSpace: flexibleSpace);
@override
CustomAppBar bottom(PreferredSizeWidget? bottom) => this(bottom: bottom);
@override
CustomAppBar elevation(double? elevation) => this(elevation: elevation);
@override
CustomAppBar scrolledUnderElevation(double? scrolledUnderElevation) =>
this(scrolledUnderElevation: scrolledUnderElevation);
@override
CustomAppBar shadowColor(Color? shadowColor) =>
this(shadowColor: shadowColor);
@override
CustomAppBar surfaceTintColor(Color? surfaceTintColor) =>
this(surfaceTintColor: surfaceTintColor);
@override
CustomAppBar backgroundColor(MultiColor? backgroundColor) =>
this(backgroundColor: backgroundColor);
@override
CustomAppBar iconTheme(IconThemeData? iconTheme) =>
this(iconTheme: iconTheme);
@override
CustomAppBar primary(bool? primary) => this(primary: primary);
@override
CustomAppBar excludeHeaderSemantics(bool? excludeHeaderSemantics) =>
this(excludeHeaderSemantics: excludeHeaderSemantics);
@override
CustomAppBar toolbarHeight(double? toolbarHeight) =>
this(toolbarHeight: toolbarHeight);
@override
CustomAppBar leadingWidth(double? leadingWidth) =>
this(leadingWidth: leadingWidth);
@override
CustomAppBar title(TextWrapper? title) => this(title: title); CustomAppBar title(TextWrapper? title) => this(title: title);
@override @override
CustomAppBar leading(Widget? leading) => this(leading: leading); CustomAppBar leading(Widget? leading) => this(leading: leading);
@ -18,13 +59,32 @@ class $CustomAppBarCWProxyImpl implements $AppBarComponentCWProxy {
@override @override
CustomAppBar centerTitle(bool? centerTitle) => this(centerTitle: centerTitle); CustomAppBar centerTitle(bool? centerTitle) => this(centerTitle: centerTitle);
@override @override
CustomAppBar expandedWidget(List<Widget>? expandedWidget) =>
this(expandedWidget: expandedWidget);
@override
CustomAppBar key(Key? key) => this(key: key); CustomAppBar key(Key? key) => this(key: key);
@override @override
CustomAppBar call({ CustomAppBar call({
ShapeBorder? shape,
SystemUiOverlayStyle? systemOverlayStyle,
bool? automaticallyImplyLeading,
Widget? flexibleSpace,
PreferredSizeWidget? bottom,
double? elevation,
double? scrolledUnderElevation,
Color? shadowColor,
Color? surfaceTintColor,
MultiColor? backgroundColor,
IconThemeData? iconTheme,
bool? primary,
bool? excludeHeaderSemantics,
double? toolbarHeight,
double? leadingWidth,
TextWrapper? title, TextWrapper? title,
Widget? leading, Widget? leading,
List<Widget>? actions, List<Widget>? actions,
bool? centerTitle, bool? centerTitle,
List<Widget>? expandedWidget,
Key? key, Key? key,
}) => }) =>
CustomAppBar( CustomAppBar(

View File

@ -15,6 +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:flutter/services.dart';
import 'package:wyatt_component_copy_with_extension/component_copy_with_extension.dart'; import 'package:wyatt_component_copy_with_extension/component_copy_with_extension.dart';
import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart'; import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart';
@ -24,14 +25,46 @@ part 'app_bar_component.g.dart';
abstract class AppBarComponent extends Component abstract class AppBarComponent extends Component
with CopyWithMixin<$AppBarComponentCWProxy> { with CopyWithMixin<$AppBarComponentCWProxy> {
const AppBarComponent({ const AppBarComponent({
this.shape,
this.systemOverlayStyle,
this.automaticallyImplyLeading,
this.flexibleSpace,
this.bottom,
this.elevation,
this.scrolledUnderElevation,
this.shadowColor,
this.surfaceTintColor,
this.backgroundColor,
this.iconTheme,
this.primary,
this.excludeHeaderSemantics,
this.toolbarHeight,
this.leadingWidth,
this.title, this.title,
this.leading, this.leading,
this.actions, this.actions,
this.centerTitle, this.centerTitle,
this.expandedWidget,
super.key, super.key,
}); });
final TextWrapper? title; final TextWrapper? title;
final bool? centerTitle; final bool? centerTitle;
final Widget? leading; final Widget? leading;
final List<Widget>? actions; final List<Widget>? actions;
final bool? automaticallyImplyLeading;
final Widget? flexibleSpace;
final PreferredSizeWidget? bottom;
final double? elevation;
final double? scrolledUnderElevation;
final Color? shadowColor;
final Color? surfaceTintColor;
final MultiColor? backgroundColor;
final IconThemeData? iconTheme;
final bool? primary;
final bool? excludeHeaderSemantics;
final double? toolbarHeight;
final double? leadingWidth;
final SystemUiOverlayStyle? systemOverlayStyle;
final ShapeBorder? shape;
final List<Widget>? expandedWidget;
} }

View File

@ -7,16 +7,48 @@ part of 'app_bar_component.dart';
// ************************************************************************** // **************************************************************************
abstract class $AppBarComponentCWProxy { abstract class $AppBarComponentCWProxy {
AppBarComponent shape(ShapeBorder? shape);
AppBarComponent systemOverlayStyle(SystemUiOverlayStyle? systemOverlayStyle);
AppBarComponent automaticallyImplyLeading(bool? automaticallyImplyLeading);
AppBarComponent flexibleSpace(Widget? flexibleSpace);
AppBarComponent bottom(PreferredSizeWidget? bottom);
AppBarComponent elevation(double? elevation);
AppBarComponent scrolledUnderElevation(double? scrolledUnderElevation);
AppBarComponent shadowColor(Color? shadowColor);
AppBarComponent surfaceTintColor(Color? surfaceTintColor);
AppBarComponent backgroundColor(MultiColor? backgroundColor);
AppBarComponent iconTheme(IconThemeData? iconTheme);
AppBarComponent primary(bool? primary);
AppBarComponent excludeHeaderSemantics(bool? excludeHeaderSemantics);
AppBarComponent toolbarHeight(double? toolbarHeight);
AppBarComponent leadingWidth(double? leadingWidth);
AppBarComponent title(TextWrapper? title); AppBarComponent title(TextWrapper? title);
AppBarComponent leading(Widget? leading); AppBarComponent leading(Widget? leading);
AppBarComponent actions(List<Widget>? actions); AppBarComponent actions(List<Widget>? actions);
AppBarComponent centerTitle(bool? centerTitle); AppBarComponent centerTitle(bool? centerTitle);
AppBarComponent expandedWidget(List<Widget>? expandedWidget);
AppBarComponent key(Key? key); AppBarComponent key(Key? key);
AppBarComponent call({ AppBarComponent call({
ShapeBorder? shape,
SystemUiOverlayStyle? systemOverlayStyle,
bool? automaticallyImplyLeading,
Widget? flexibleSpace,
PreferredSizeWidget? bottom,
double? elevation,
double? scrolledUnderElevation,
Color? shadowColor,
Color? surfaceTintColor,
MultiColor? backgroundColor,
IconThemeData? iconTheme,
bool? primary,
bool? excludeHeaderSemantics,
double? toolbarHeight,
double? leadingWidth,
TextWrapper? title, TextWrapper? title,
Widget? leading, Widget? leading,
List<Widget>? actions, List<Widget>? actions,
bool? centerTitle, bool? centerTitle,
List<Widget>? expandedWidget,
Key? key, Key? key,
}); });
} }