feat: add items manipulation in bottom bar component
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
ef19191093
commit
8adc68230c
@ -17,11 +17,15 @@ class $CustomBottomNavigationBarCWProxyImpl
|
||||
CustomBottomNavigationBar currentIndex(int? currentIndex) =>
|
||||
this(currentIndex: currentIndex);
|
||||
@override
|
||||
CustomBottomNavigationBar items(List<BottomNavigationBarItem>? items) =>
|
||||
this(items: items);
|
||||
@override
|
||||
CustomBottomNavigationBar key(Key? key) => this(key: key);
|
||||
@override
|
||||
CustomBottomNavigationBar call({
|
||||
void Function(BuildContext, int)? onTap,
|
||||
int? currentIndex,
|
||||
List<BottomNavigationBarItem>? items,
|
||||
Key? key,
|
||||
}) =>
|
||||
CustomBottomNavigationBar(
|
||||
|
@ -27,8 +27,11 @@ abstract class BottomNavigationBarComponent extends Component
|
||||
const BottomNavigationBarComponent({
|
||||
this.onTap,
|
||||
this.currentIndex = 0,
|
||||
this.items = const <BottomNavigationBarItem>[],
|
||||
super.key,
|
||||
});
|
||||
|
||||
final int currentIndex;
|
||||
final void Function(BuildContext, int)? onTap;
|
||||
final List<BottomNavigationBarItem> items;
|
||||
}
|
||||
|
@ -9,10 +9,12 @@ part of 'bottom_navigation_bar_component.dart';
|
||||
abstract class $BottomNavigationBarComponentCWProxy {
|
||||
BottomNavigationBarComponent onTap(void Function(BuildContext, int)? onTap);
|
||||
BottomNavigationBarComponent currentIndex(int? currentIndex);
|
||||
BottomNavigationBarComponent items(List<BottomNavigationBarItem>? items);
|
||||
BottomNavigationBarComponent key(Key? key);
|
||||
BottomNavigationBarComponent call({
|
||||
void Function(BuildContext, int)? onTap,
|
||||
int? currentIndex,
|
||||
List<BottomNavigationBarItem>? items,
|
||||
Key? key,
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user