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 @override
AppBarComponent configure( AppBarComponent configure({String? title}) => CustomAppBar(
{String? title, Widget? leading, List<Widget>? actions}) =>
CustomAppBar(
title: title ?? this.title, title: title ?? this.title,
); );
} }

View File

@ -10,9 +10,7 @@ class CustomAppBar extends AppBarComponent {
); );
@override @override
AppBarComponent configure( AppBarComponent configure({String? title}) => CustomAppBar(
{String? title, Widget? leading, List<Widget>? actions}) =>
CustomAppBar(
title: title ?? this.title, 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'; import 'package:flutter/material.dart';
abstract class Component extends StatelessWidget { 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 { abstract class AppBarComponent extends Component {
final String? title; final String? title;
final Widget? leading; const AppBarComponent({this.title, super.key});
final List<Widget>? actions;
const AppBarComponent({
this.title,
this.leading,
this.actions,
super.key,
});
@override @override
AppBarComponent configure({ AppBarComponent configure({String? title});
String? title,
Widget? leading,
List<Widget>? actions,
});
} }
abstract class BottomNavigationBarComponent extends Component { abstract class BottomNavigationBarComponent extends Component {

View File

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