Compare commits
No commits in common. "45c7bd6fcabe43520c2defda0cb603be6326204b" and "dc0f0c61c628fd26ecf7de3f396c34a2afdd2968" have entirely different histories.
45c7bd6fca
...
dc0f0c61c6
@ -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,
|
||||
);
|
||||
}
|
||||
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user