Compare commits

..

No commits in common. "45c7bd6fcabe43520c2defda0cb603be6326204b" and "dc0f0c61c628fd26ecf7de3f396c34a2afdd2968" have entirely different histories.

5 changed files with 5 additions and 41 deletions

View File

@ -18,9 +18,7 @@ class CustomAppBar extends AppBarComponent {
);
@override
AppBarComponent configure(
{String? title, Widget? leading, List<Widget>? actions}) =>
CustomAppBar(
AppBarComponent configure({String? title}) => CustomAppBar(
title: title ?? this.title,
);
}

View File

@ -10,9 +10,7 @@ class CustomAppBar extends AppBarComponent {
);
@override
AppBarComponent configure(
{String? title, Widget? leading, List<Widget>? actions}) =>
CustomAppBar(
AppBarComponent configure({String? title}) => CustomAppBar(
title: title ?? this.title,
);
}

View File

@ -1,19 +1,3 @@
// 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/>.
import 'package:flutter/material.dart';
abstract class Component extends StatelessWidget {

View File

@ -19,21 +19,10 @@ import 'package:wyatt_ui_components/src/domain/entities/component.dart';
abstract class AppBarComponent extends Component {
final String? title;
final Widget? leading;
final List<Widget>? actions;
const AppBarComponent({
this.title,
this.leading,
this.actions,
super.key,
});
const AppBarComponent({this.title, super.key});
@override
AppBarComponent configure({
String? title,
Widget? leading,
List<Widget>? actions,
});
AppBarComponent configure({String? title});
}
abstract class BottomNavigationBarComponent extends Component {

View File

@ -13,12 +13,7 @@ class CustomAppBar extends AppBarComponent {
);
@override
AppBarComponent configure({
String? title,
Widget? leading,
List<Widget>? actions,
}) =>
CustomAppBar(
AppBarComponent configure({String? title}) => CustomAppBar(
title: title ?? this.title,
);
}