Compare commits
No commits in common. "ad0f1ec1c58b860f2df6962c7fe83ecf33bd3d89" and "79dc34414cf1b90cd0abe4f4d86073570675858e" have entirely different histories.
ad0f1ec1c5
...
79dc34414c
@ -10,81 +10,18 @@ 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);
|
||||||
@override
|
@override
|
||||||
CustomAppBar actions(List<Widget>? actions) => this(actions: actions);
|
CustomAppBar actions(List<Widget>? actions) => this(actions: actions);
|
||||||
@override
|
@override
|
||||||
CustomAppBar centerTitle(bool? centerTitle) => this(centerTitle: centerTitle);
|
|
||||||
@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,
|
|
||||||
List<Widget>? expandedWidget,
|
|
||||||
Key? key,
|
Key? key,
|
||||||
}) =>
|
}) =>
|
||||||
CustomAppBar(
|
CustomAppBar(
|
||||||
|
@ -15,7 +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/>.
|
||||||
|
|
||||||
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';
|
||||||
|
|
||||||
@ -25,46 +24,12 @@ 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.expandedWidget,
|
|
||||||
super.key,
|
super.key,
|
||||||
});
|
});
|
||||||
final TextWrapper? title;
|
final TextWrapper? title;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
@ -7,48 +7,14 @@ 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 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,
|
|
||||||
List<Widget>? expandedWidget,
|
|
||||||
Key? key,
|
Key? key,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:wyatt_component_copy_with_extension/component_copy_with_extension.dart';
|
||||||
// Copyright (C) 2023 WYATT GROUP
|
// Copyright (C) 2023 WYATT GROUP
|
||||||
// Please see the AUTHORS file for details.
|
// Please see the AUTHORS file for details.
|
||||||
//
|
//
|
||||||
@ -14,8 +16,6 @@
|
|||||||
// 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:wyatt_component_copy_with_extension/component_copy_with_extension.dart';
|
|
||||||
import 'package:wyatt_ui_components/src/core/mixins/copy_with_mixin.dart';
|
import 'package:wyatt_ui_components/src/core/mixins/copy_with_mixin.dart';
|
||||||
import 'package:wyatt_ui_components/src/domain/entities/component.dart';
|
import 'package:wyatt_ui_components/src/domain/entities/component.dart';
|
||||||
|
|
||||||
|
@ -26,4 +26,3 @@ export './loading_widget_component.dart';
|
|||||||
export './rich_text_builder/rich_text_builder.dart';
|
export './rich_text_builder/rich_text_builder.dart';
|
||||||
export './text_inputs/text_inputs.dart';
|
export './text_inputs/text_inputs.dart';
|
||||||
export './theme_style.dart';
|
export './theme_style.dart';
|
||||||
export './top_navigation_bar_component.dart';
|
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
// 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/component_copy_with_extension.dart';
|
|
||||||
import 'package:wyatt_ui_components/src/core/mixins/copy_with_mixin.dart';
|
|
||||||
import 'package:wyatt_ui_components/src/domain/entities/component.dart';
|
|
||||||
|
|
||||||
part 'top_navigation_bar_component.g.dart';
|
|
||||||
|
|
||||||
@ComponentProxyExtension()
|
|
||||||
abstract class TopNavigationBarComponent extends Component
|
|
||||||
with CopyWithMixin<$TopNavigationBarComponentCWProxy> {
|
|
||||||
const TopNavigationBarComponent({
|
|
||||||
this.leading,
|
|
||||||
this.actions,
|
|
||||||
this.onTap,
|
|
||||||
this.currentIndex = 0,
|
|
||||||
super.key,
|
|
||||||
});
|
|
||||||
final int currentIndex;
|
|
||||||
final void Function(BuildContext, int)? onTap;
|
|
||||||
final Widget? leading;
|
|
||||||
final List<Widget>? actions;
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'top_navigation_bar_component.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// ComponentProxyGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
abstract class $TopNavigationBarComponentCWProxy {
|
|
||||||
TopNavigationBarComponent leading(Widget? leading);
|
|
||||||
TopNavigationBarComponent actions(List<Widget>? actions);
|
|
||||||
TopNavigationBarComponent onTap(void Function(BuildContext, int)? onTap);
|
|
||||||
TopNavigationBarComponent currentIndex(int? currentIndex);
|
|
||||||
TopNavigationBarComponent key(Key? key);
|
|
||||||
TopNavigationBarComponent call({
|
|
||||||
Widget? leading,
|
|
||||||
List<Widget>? actions,
|
|
||||||
void Function(BuildContext, int)? onTap,
|
|
||||||
int? currentIndex,
|
|
||||||
Key? key,
|
|
||||||
});
|
|
||||||
}
|
|
@ -19,7 +19,6 @@ import 'package:wyatt_ui_components/src/domain/entities/entities.dart';
|
|||||||
class ComponentThemeData {
|
class ComponentThemeData {
|
||||||
const ComponentThemeData.raw({
|
const ComponentThemeData.raw({
|
||||||
this.appBar,
|
this.appBar,
|
||||||
this.topNavigationBarComponent,
|
|
||||||
this.bottomNavigationBar,
|
this.bottomNavigationBar,
|
||||||
this.errorWidget,
|
this.errorWidget,
|
||||||
this.loadingWidget,
|
this.loadingWidget,
|
||||||
@ -36,10 +35,7 @@ class ComponentThemeData {
|
|||||||
this.skillCardComponent,
|
this.skillCardComponent,
|
||||||
});
|
});
|
||||||
final AppBarComponent? appBar;
|
final AppBarComponent? appBar;
|
||||||
|
|
||||||
final TopNavigationBarComponent? topNavigationBarComponent;
|
|
||||||
final BottomNavigationBarComponent? bottomNavigationBar;
|
final BottomNavigationBarComponent? bottomNavigationBar;
|
||||||
|
|
||||||
final ErrorWidgetComponent? errorWidget;
|
final ErrorWidgetComponent? errorWidget;
|
||||||
final LoadingWidgetComponent? loadingWidget;
|
final LoadingWidgetComponent? loadingWidget;
|
||||||
final LoaderComponent? loaderComponent;
|
final LoaderComponent? loaderComponent;
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 27 KiB |
@ -1,69 +0,0 @@
|
|||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:gap/gap.dart';
|
|
||||||
import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart';
|
|
||||||
import 'package:wyatt_ui_kit/wyatt_ui_kit.dart';
|
|
||||||
import 'package:wyatt_ui_kit_example/demo_page.dart';
|
|
||||||
|
|
||||||
class Bars extends DemoPage {
|
|
||||||
const Bars({super.key});
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) => ListView(
|
|
||||||
cacheExtent: 1000,
|
|
||||||
children: [
|
|
||||||
const Gap(20),
|
|
||||||
TopAppBar(
|
|
||||||
leading: Padding(
|
|
||||||
padding: const EdgeInsets.all(8),
|
|
||||||
child: Image.asset('assets/images/studio_logo.png'),
|
|
||||||
),
|
|
||||||
title: 'Wyatt Studio'.wrap(
|
|
||||||
gradientColors: const MultiColor(
|
|
||||||
[
|
|
||||||
Color.fromRGBO(57, 167, 254, 1),
|
|
||||||
Color.fromRGBO(71, 94, 241, 1),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
actions: [
|
|
||||||
IconButton(onPressed: () {}, icon: const Icon(Icons.menu))
|
|
||||||
],
|
|
||||||
),
|
|
||||||
const Gap(20),
|
|
||||||
TopAppBar(
|
|
||||||
leading: Padding(
|
|
||||||
padding: const EdgeInsets.all(8),
|
|
||||||
child: Image.asset('assets/images/studio_logo.png'),
|
|
||||||
),
|
|
||||||
title: 'Wyatt Studio'.wrap(
|
|
||||||
gradientColors: const MultiColor(
|
|
||||||
[
|
|
||||||
Color.fromRGBO(57, 167, 254, 1),
|
|
||||||
Color.fromRGBO(71, 94, 241, 1),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
expandedWidget: const [
|
|
||||||
ListTile(
|
|
||||||
title: Text('Votre programme'),
|
|
||||||
),
|
|
||||||
ListTile(
|
|
||||||
title: Text('Votre programme'),
|
|
||||||
),
|
|
||||||
ListTile(
|
|
||||||
title: Text('Votre programme'),
|
|
||||||
)
|
|
||||||
],
|
|
||||||
actions: [
|
|
||||||
IconButton(
|
|
||||||
onPressed: () {},
|
|
||||||
icon: const Icon(Icons.clear),
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String get title => 'Bars';
|
|
||||||
}
|
|
@ -1,7 +1,6 @@
|
|||||||
import 'package:adaptive_theme/adaptive_theme.dart';
|
import 'package:adaptive_theme/adaptive_theme.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:gap/gap.dart';
|
import 'package:gap/gap.dart';
|
||||||
import 'package:wyatt_ui_kit_example/bars/bars.dart';
|
|
||||||
import 'package:wyatt_ui_kit_example/buttons/buttons.dart';
|
import 'package:wyatt_ui_kit_example/buttons/buttons.dart';
|
||||||
import 'package:wyatt_ui_kit_example/cards/cards.dart';
|
import 'package:wyatt_ui_kit_example/cards/cards.dart';
|
||||||
import 'package:wyatt_ui_kit_example/demo_page.dart';
|
import 'package:wyatt_ui_kit_example/demo_page.dart';
|
||||||
@ -29,7 +28,6 @@ class _HomeState extends State<Home> {
|
|||||||
Loaders(),
|
Loaders(),
|
||||||
RichTextBuilders(),
|
RichTextBuilders(),
|
||||||
TextInputs(),
|
TextInputs(),
|
||||||
Bars(),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
int currentIndex = 0;
|
int currentIndex = 0;
|
||||||
|
@ -25,7 +25,6 @@ import 'package:wyatt_ui_kit_example/theme/rich_text_builder_theme.dart';
|
|||||||
import 'package:wyatt_ui_kit_example/theme/simple_icon_button_theme.dart';
|
import 'package:wyatt_ui_kit_example/theme/simple_icon_button_theme.dart';
|
||||||
import 'package:wyatt_ui_kit_example/theme/symbol_button_theme.dart';
|
import 'package:wyatt_ui_kit_example/theme/symbol_button_theme.dart';
|
||||||
import 'package:wyatt_ui_kit_example/theme/text_input_theme.dart';
|
import 'package:wyatt_ui_kit_example/theme/text_input_theme.dart';
|
||||||
import 'package:wyatt_ui_kit_example/theme/top_app_bar_theme.dart';
|
|
||||||
|
|
||||||
/// Easely switch between Material and Studio themes.
|
/// Easely switch between Material and Studio themes.
|
||||||
abstract class Themes {
|
abstract class Themes {
|
||||||
@ -93,7 +92,6 @@ abstract class Themes {
|
|||||||
// Rich Text
|
// Rich Text
|
||||||
RichTextBuilderTheme.light(),
|
RichTextBuilderTheme.light(),
|
||||||
TextInputTheme.light(),
|
TextInputTheme.light(),
|
||||||
TopAppBarTheme.light(),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -126,7 +124,6 @@ abstract class Themes {
|
|||||||
// Rich Text
|
// Rich Text
|
||||||
RichTextBuilderTheme.dark(),
|
RichTextBuilderTheme.dark(),
|
||||||
TextInputTheme.dark(),
|
TextInputTheme.dark(),
|
||||||
TopAppBarTheme.dark(),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1,71 +0,0 @@
|
|||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
|
||||||
import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart';
|
|
||||||
import 'package:wyatt_ui_kit/wyatt_ui_kit.dart';
|
|
||||||
|
|
||||||
class TopAppBarTheme extends TopAppBarThemeExtension {
|
|
||||||
const TopAppBarTheme({
|
|
||||||
super.iconTheme,
|
|
||||||
super.backgroundColors,
|
|
||||||
super.expandedDividerStyle,
|
|
||||||
super.titleStyle,
|
|
||||||
});
|
|
||||||
|
|
||||||
factory TopAppBarTheme.light() => TopAppBarTheme(
|
|
||||||
backgroundColors: const MultiColor.single(
|
|
||||||
Color.fromRGBO(246, 246, 246, 1),
|
|
||||||
),
|
|
||||||
expandedDividerStyle: Colors.black.withOpacity(0.1),
|
|
||||||
titleStyle: GoogleFonts.montserrat(
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
fontSize: 18,
|
|
||||||
),
|
|
||||||
iconTheme: const IconThemeData(color: Colors.black),
|
|
||||||
);
|
|
||||||
|
|
||||||
factory TopAppBarTheme.dark() => TopAppBarTheme(
|
|
||||||
backgroundColors: const MultiColor([
|
|
||||||
Color.fromRGBO(44, 50, 56, 1),
|
|
||||||
Color.fromRGBO(39, 47, 61, 1),
|
|
||||||
Color.fromRGBO(44, 50, 56, 1),
|
|
||||||
]),
|
|
||||||
expandedDividerStyle: Colors.white.withOpacity(0.1),
|
|
||||||
titleStyle: GoogleFonts.montserrat(
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
fontSize: 18,
|
|
||||||
),
|
|
||||||
iconTheme: const IconThemeData(color: Colors.white),
|
|
||||||
);
|
|
||||||
|
|
||||||
@override
|
|
||||||
ThemeExtension<TopAppBarThemeExtension> copyWith({
|
|
||||||
IconThemeData? iconTheme,
|
|
||||||
MultiColor? backgroundColors,
|
|
||||||
Color? expandedDividerStyle,
|
|
||||||
TextStyle? titleStyle,
|
|
||||||
}) =>
|
|
||||||
TopAppBarTheme(
|
|
||||||
iconTheme: iconTheme ?? this.iconTheme,
|
|
||||||
backgroundColors: backgroundColors ?? this.backgroundColors,
|
|
||||||
expandedDividerStyle: expandedDividerStyle ?? this.expandedDividerStyle,
|
|
||||||
titleStyle: titleStyle ?? this.titleStyle,
|
|
||||||
);
|
|
||||||
|
|
||||||
@override
|
|
||||||
ThemeExtension<TopAppBarThemeExtension> lerp(
|
|
||||||
covariant ThemeExtension<TopAppBarThemeExtension>? other,
|
|
||||||
double t,
|
|
||||||
) {
|
|
||||||
if (other is! TopAppBarTheme) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
return TopAppBarTheme(
|
|
||||||
iconTheme: IconThemeData.lerp(iconTheme, other.iconTheme, t),
|
|
||||||
backgroundColors:
|
|
||||||
MultiColor.lerp(backgroundColors, other.backgroundColors, t),
|
|
||||||
expandedDividerStyle:
|
|
||||||
Color.lerp(expandedDividerStyle, other.expandedDividerStyle, t),
|
|
||||||
titleStyle: TextStyle.lerp(titleStyle, other.titleStyle, t),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
// Copyright (C) 2023 WYATT GROUP
|
|
||||||
// Please see the AUTHORS file for details.
|
|
||||||
//
|
|
||||||
// super 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.
|
|
||||||
//
|
|
||||||
// super 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 super program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
export 'top_app_bar.dart';
|
|
@ -1,139 +0,0 @@
|
|||||||
// Copyright (C) 2023 WYATT GROUP
|
|
||||||
// Please see the AUTHORS file for details.
|
|
||||||
//
|
|
||||||
// super 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.
|
|
||||||
//
|
|
||||||
// super 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 super 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';
|
|
||||||
import 'package:wyatt_ui_kit/wyatt_ui_kit.dart';
|
|
||||||
part 'top_app_bar.g.dart';
|
|
||||||
|
|
||||||
@ComponentCopyWithExtension()
|
|
||||||
class TopAppBar extends AppBarComponent with $TopAppBarCWMixin {
|
|
||||||
const TopAppBar({
|
|
||||||
super.systemOverlayStyle,
|
|
||||||
super.automaticallyImplyLeading,
|
|
||||||
super.flexibleSpace,
|
|
||||||
super.bottom,
|
|
||||||
super.elevation,
|
|
||||||
super.scrolledUnderElevation,
|
|
||||||
super.shadowColor,
|
|
||||||
super.surfaceTintColor,
|
|
||||||
super.backgroundColor,
|
|
||||||
super.iconTheme,
|
|
||||||
super.primary,
|
|
||||||
super.excludeHeaderSemantics,
|
|
||||||
super.toolbarHeight,
|
|
||||||
super.leadingWidth,
|
|
||||||
super.title,
|
|
||||||
super.leading,
|
|
||||||
super.actions,
|
|
||||||
super.centerTitle,
|
|
||||||
super.shape,
|
|
||||||
super.expandedWidget,
|
|
||||||
super.key,
|
|
||||||
});
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) => DecoratedBox(
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
gradient: ThemeHelper.getThemeElement<MultiColor, Gradient>(
|
|
||||||
[
|
|
||||||
backgroundColor,
|
|
||||||
context
|
|
||||||
.themeExtension<TopAppBarThemeExtension>()
|
|
||||||
?.backgroundColors,
|
|
||||||
],
|
|
||||||
valueValidator: (value) => value?.isGradient,
|
|
||||||
transform: (value) =>
|
|
||||||
LinearGradientHelper.fromNullableColors(value?.colors),
|
|
||||||
defaultValue: null,
|
|
||||||
),
|
|
||||||
color: ThemeHelper.getThemeElement<MultiColor, Color>(
|
|
||||||
[
|
|
||||||
backgroundColor,
|
|
||||||
context
|
|
||||||
.themeExtension<TopAppBarThemeExtension>()
|
|
||||||
?.backgroundColors,
|
|
||||||
],
|
|
||||||
valueValidator: (value) => value?.isColor,
|
|
||||||
transform: (value) => value?.color,
|
|
||||||
defaultValue: Theme.of(context).appBarTheme.backgroundColor,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
AppBar(
|
|
||||||
titleSpacing: 0,
|
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
systemOverlayStyle: systemOverlayStyle,
|
|
||||||
automaticallyImplyLeading: automaticallyImplyLeading ?? true,
|
|
||||||
flexibleSpace: flexibleSpace,
|
|
||||||
bottom: bottom,
|
|
||||||
elevation: elevation ?? 0,
|
|
||||||
scrolledUnderElevation: scrolledUnderElevation,
|
|
||||||
shadowColor: shadowColor,
|
|
||||||
surfaceTintColor: surfaceTintColor,
|
|
||||||
iconTheme:
|
|
||||||
ThemeHelper.getThemeElement<IconThemeData, IconThemeData>(
|
|
||||||
[
|
|
||||||
iconTheme,
|
|
||||||
context.themeExtension<TopAppBarThemeExtension>()?.iconTheme,
|
|
||||||
],
|
|
||||||
valueValidator: (value) => value != null,
|
|
||||||
transform: (value) => value,
|
|
||||||
defaultValue: Theme.of(context).iconTheme,
|
|
||||||
),
|
|
||||||
primary: primary ?? true,
|
|
||||||
excludeHeaderSemantics: excludeHeaderSemantics ?? false,
|
|
||||||
leadingWidth: leadingWidth,
|
|
||||||
title: Text(
|
|
||||||
title?.data ?? '',
|
|
||||||
style: ThemeHelper.getThemeElement<TextStyle, TextStyle>(
|
|
||||||
[
|
|
||||||
title?.style,
|
|
||||||
context
|
|
||||||
.themeExtension<TopAppBarThemeExtension>()
|
|
||||||
?.titleStyle
|
|
||||||
],
|
|
||||||
valueValidator: (value) => value != null,
|
|
||||||
transform: (value) => value,
|
|
||||||
defaultValue: context.textTheme.titleLarge,
|
|
||||||
),
|
|
||||||
).toGradient(gradientColors: title?.gradientColors),
|
|
||||||
leading: leading,
|
|
||||||
actions: actions,
|
|
||||||
centerTitle: centerTitle ?? false,
|
|
||||||
),
|
|
||||||
if (expandedWidget != null)
|
|
||||||
...ListTile.divideTiles(
|
|
||||||
color: ThemeHelper.getThemeElement<Color, Color>(
|
|
||||||
[
|
|
||||||
context
|
|
||||||
.themeExtension<TopAppBarThemeExtension>()
|
|
||||||
?.expandedDividerStyle,
|
|
||||||
],
|
|
||||||
valueValidator: (value) => value != null,
|
|
||||||
transform: (value) => value,
|
|
||||||
defaultValue: Theme.of(context).dividerColor,
|
|
||||||
),
|
|
||||||
context: context,
|
|
||||||
tiles: expandedWidget!,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
@ -1,119 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'top_app_bar.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// ComponentCopyWithGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
class $TopAppBarCWProxyImpl implements $AppBarComponentCWProxy {
|
|
||||||
const $TopAppBarCWProxyImpl(this._value);
|
|
||||||
final TopAppBar _value;
|
|
||||||
@override
|
|
||||||
TopAppBar shape(ShapeBorder? shape) => this(shape: shape);
|
|
||||||
@override
|
|
||||||
TopAppBar systemOverlayStyle(SystemUiOverlayStyle? systemOverlayStyle) =>
|
|
||||||
this(systemOverlayStyle: systemOverlayStyle);
|
|
||||||
@override
|
|
||||||
TopAppBar automaticallyImplyLeading(bool? automaticallyImplyLeading) =>
|
|
||||||
this(automaticallyImplyLeading: automaticallyImplyLeading);
|
|
||||||
@override
|
|
||||||
TopAppBar flexibleSpace(Widget? flexibleSpace) =>
|
|
||||||
this(flexibleSpace: flexibleSpace);
|
|
||||||
@override
|
|
||||||
TopAppBar bottom(PreferredSizeWidget? bottom) => this(bottom: bottom);
|
|
||||||
@override
|
|
||||||
TopAppBar elevation(double? elevation) => this(elevation: elevation);
|
|
||||||
@override
|
|
||||||
TopAppBar scrolledUnderElevation(double? scrolledUnderElevation) =>
|
|
||||||
this(scrolledUnderElevation: scrolledUnderElevation);
|
|
||||||
@override
|
|
||||||
TopAppBar shadowColor(Color? shadowColor) => this(shadowColor: shadowColor);
|
|
||||||
@override
|
|
||||||
TopAppBar surfaceTintColor(Color? surfaceTintColor) =>
|
|
||||||
this(surfaceTintColor: surfaceTintColor);
|
|
||||||
@override
|
|
||||||
TopAppBar backgroundColor(MultiColor? backgroundColor) =>
|
|
||||||
this(backgroundColor: backgroundColor);
|
|
||||||
@override
|
|
||||||
TopAppBar iconTheme(IconThemeData? iconTheme) => this(iconTheme: iconTheme);
|
|
||||||
@override
|
|
||||||
TopAppBar primary(bool? primary) => this(primary: primary);
|
|
||||||
@override
|
|
||||||
TopAppBar excludeHeaderSemantics(bool? excludeHeaderSemantics) =>
|
|
||||||
this(excludeHeaderSemantics: excludeHeaderSemantics);
|
|
||||||
@override
|
|
||||||
TopAppBar toolbarHeight(double? toolbarHeight) =>
|
|
||||||
this(toolbarHeight: toolbarHeight);
|
|
||||||
@override
|
|
||||||
TopAppBar leadingWidth(double? leadingWidth) =>
|
|
||||||
this(leadingWidth: leadingWidth);
|
|
||||||
@override
|
|
||||||
TopAppBar title(TextWrapper? title) => this(title: title);
|
|
||||||
@override
|
|
||||||
TopAppBar leading(Widget? leading) => this(leading: leading);
|
|
||||||
@override
|
|
||||||
TopAppBar actions(List<Widget>? actions) => this(actions: actions);
|
|
||||||
@override
|
|
||||||
TopAppBar centerTitle(bool? centerTitle) => this(centerTitle: centerTitle);
|
|
||||||
@override
|
|
||||||
TopAppBar expandedWidget(List<Widget>? expandedWidget) =>
|
|
||||||
this(expandedWidget: expandedWidget);
|
|
||||||
@override
|
|
||||||
TopAppBar key(Key? key) => this(key: key);
|
|
||||||
@override
|
|
||||||
TopAppBar 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,
|
|
||||||
}) =>
|
|
||||||
TopAppBar(
|
|
||||||
systemOverlayStyle: systemOverlayStyle ?? _value.systemOverlayStyle,
|
|
||||||
automaticallyImplyLeading:
|
|
||||||
automaticallyImplyLeading ?? _value.automaticallyImplyLeading,
|
|
||||||
flexibleSpace: flexibleSpace ?? _value.flexibleSpace,
|
|
||||||
bottom: bottom ?? _value.bottom,
|
|
||||||
elevation: elevation ?? _value.elevation,
|
|
||||||
scrolledUnderElevation:
|
|
||||||
scrolledUnderElevation ?? _value.scrolledUnderElevation,
|
|
||||||
shadowColor: shadowColor ?? _value.shadowColor,
|
|
||||||
surfaceTintColor: surfaceTintColor ?? _value.surfaceTintColor,
|
|
||||||
backgroundColor: backgroundColor ?? _value.backgroundColor,
|
|
||||||
iconTheme: iconTheme ?? _value.iconTheme,
|
|
||||||
primary: primary ?? _value.primary,
|
|
||||||
excludeHeaderSemantics:
|
|
||||||
excludeHeaderSemantics ?? _value.excludeHeaderSemantics,
|
|
||||||
toolbarHeight: toolbarHeight ?? _value.toolbarHeight,
|
|
||||||
leadingWidth: leadingWidth ?? _value.leadingWidth,
|
|
||||||
title: title ?? _value.title,
|
|
||||||
leading: leading ?? _value.leading,
|
|
||||||
actions: actions ?? _value.actions,
|
|
||||||
centerTitle: centerTitle ?? _value.centerTitle,
|
|
||||||
shape: shape ?? _value.shape,
|
|
||||||
expandedWidget: expandedWidget ?? _value.expandedWidget,
|
|
||||||
key: key ?? _value.key,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
mixin $TopAppBarCWMixin on Component {
|
|
||||||
$AppBarComponentCWProxy get copyWith =>
|
|
||||||
$TopAppBarCWProxyImpl(this as TopAppBar);
|
|
||||||
}
|
|
@ -14,7 +14,6 @@
|
|||||||
// 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 './app_bars/app_bars.dart';
|
|
||||||
export './buttons/buttons.dart';
|
export './buttons/buttons.dart';
|
||||||
export './cards/cards.dart';
|
export './cards/cards.dart';
|
||||||
export './gradients/gradients.dart';
|
export './gradients/gradients.dart';
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
// 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/component_copy_with_extension.dart';
|
|
||||||
import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart';
|
|
||||||
part 'top_navigation_bar.g.dart';
|
|
||||||
|
|
||||||
@ComponentCopyWithExtension()
|
|
||||||
class TopNavigationBar extends TopNavigationBarComponent
|
|
||||||
with $TopNavigationBarCWMixin {
|
|
||||||
const TopNavigationBar({
|
|
||||||
super.leading,
|
|
||||||
super.actions,
|
|
||||||
super.onTap,
|
|
||||||
super.currentIndex = 0,
|
|
||||||
super.key,
|
|
||||||
});
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) => const Placeholder();
|
|
||||||
}
|
|
@ -1,45 +0,0 @@
|
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
||||||
|
|
||||||
part of 'top_navigation_bar.dart';
|
|
||||||
|
|
||||||
// **************************************************************************
|
|
||||||
// ComponentCopyWithGenerator
|
|
||||||
// **************************************************************************
|
|
||||||
|
|
||||||
class $TopNavigationBarCWProxyImpl
|
|
||||||
implements $TopNavigationBarComponentCWProxy {
|
|
||||||
const $TopNavigationBarCWProxyImpl(this._value);
|
|
||||||
final TopNavigationBar _value;
|
|
||||||
@override
|
|
||||||
TopNavigationBar leading(Widget? leading) => this(leading: leading);
|
|
||||||
@override
|
|
||||||
TopNavigationBar actions(List<Widget>? actions) => this(actions: actions);
|
|
||||||
@override
|
|
||||||
TopNavigationBar onTap(void Function(BuildContext, int)? onTap) =>
|
|
||||||
this(onTap: onTap);
|
|
||||||
@override
|
|
||||||
TopNavigationBar currentIndex(int? currentIndex) =>
|
|
||||||
this(currentIndex: currentIndex);
|
|
||||||
@override
|
|
||||||
TopNavigationBar key(Key? key) => this(key: key);
|
|
||||||
@override
|
|
||||||
TopNavigationBar call({
|
|
||||||
Widget? leading,
|
|
||||||
List<Widget>? actions,
|
|
||||||
void Function(BuildContext, int)? onTap,
|
|
||||||
int? currentIndex,
|
|
||||||
Key? key,
|
|
||||||
}) =>
|
|
||||||
TopNavigationBar(
|
|
||||||
leading: leading ?? _value.leading,
|
|
||||||
actions: actions ?? _value.actions,
|
|
||||||
onTap: onTap ?? _value.onTap,
|
|
||||||
currentIndex: currentIndex ?? _value.currentIndex,
|
|
||||||
key: key ?? _value.key,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
mixin $TopNavigationBarCWMixin on Component {
|
|
||||||
$TopNavigationBarComponentCWProxy get copyWith =>
|
|
||||||
$TopNavigationBarCWProxyImpl(this as TopNavigationBar);
|
|
||||||
}
|
|
@ -19,4 +19,3 @@ export './card_theme_extension.dart';
|
|||||||
export './loader_theme_extension.dart';
|
export './loader_theme_extension.dart';
|
||||||
export './rich_text_builder_theme_extension.dart';
|
export './rich_text_builder_theme_extension.dart';
|
||||||
export './text_input_theme_extension.dart';
|
export './text_input_theme_extension.dart';
|
||||||
export './top_app_bar_extension.dart';
|
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
// 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_ui_components/wyatt_wyatt_ui_components.dart';
|
|
||||||
|
|
||||||
abstract class TopAppBarThemeExtension
|
|
||||||
extends ThemeExtension<TopAppBarThemeExtension> {
|
|
||||||
const TopAppBarThemeExtension({
|
|
||||||
this.iconTheme,
|
|
||||||
this.backgroundColors,
|
|
||||||
this.expandedDividerStyle,
|
|
||||||
this.titleStyle,
|
|
||||||
});
|
|
||||||
|
|
||||||
final MultiColor? backgroundColors;
|
|
||||||
final IconThemeData? iconTheme;
|
|
||||||
final Color? expandedDividerStyle;
|
|
||||||
|
|
||||||
final TextStyle? titleStyle;
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user