feat(ui_components): update attributs and proxy most of appbar attributs

This commit is contained in:
2023-02-22 15:50:21 +01:00
parent 4811ed8998
commit 41a484c013
3 changed files with 125 additions and 0 deletions
@@ -15,6 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
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_ui_components/wyatt_wyatt_ui_components.dart';
@@ -24,14 +25,46 @@ part 'app_bar_component.g.dart';
abstract class AppBarComponent extends Component
with CopyWithMixin<$AppBarComponentCWProxy> {
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.leading,
this.actions,
this.centerTitle,
this.expandedWidget,
super.key,
});
final TextWrapper? title;
final bool? centerTitle;
final Widget? leading;
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;
}
@@ -7,16 +7,48 @@ part of 'app_bar_component.dart';
// **************************************************************************
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 leading(Widget? leading);
AppBarComponent actions(List<Widget>? actions);
AppBarComponent centerTitle(bool? centerTitle);
AppBarComponent expandedWidget(List<Widget>? expandedWidget);
AppBarComponent key(Key? key);
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,
Widget? leading,
List<Widget>? actions,
bool? centerTitle,
List<Widget>? expandedWidget,
Key? key,
});
}