feat(ui_components): add Top Navigation Bar Component
This commit is contained in:
parent
79dc34414c
commit
bbd3f0a02d
@ -0,0 +1,38 @@
|
||||
// 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;
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
// 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,
|
||||
});
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user