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) =>
|
CustomBottomNavigationBar currentIndex(int? currentIndex) =>
|
||||||
this(currentIndex: currentIndex);
|
this(currentIndex: currentIndex);
|
||||||
@override
|
@override
|
||||||
|
CustomBottomNavigationBar items(List<BottomNavigationBarItem>? items) =>
|
||||||
|
this(items: items);
|
||||||
|
@override
|
||||||
CustomBottomNavigationBar key(Key? key) => this(key: key);
|
CustomBottomNavigationBar key(Key? key) => this(key: key);
|
||||||
@override
|
@override
|
||||||
CustomBottomNavigationBar call({
|
CustomBottomNavigationBar call({
|
||||||
void Function(BuildContext, int)? onTap,
|
void Function(BuildContext, int)? onTap,
|
||||||
int? currentIndex,
|
int? currentIndex,
|
||||||
|
List<BottomNavigationBarItem>? items,
|
||||||
Key? key,
|
Key? key,
|
||||||
}) =>
|
}) =>
|
||||||
CustomBottomNavigationBar(
|
CustomBottomNavigationBar(
|
||||||
|
@ -27,8 +27,11 @@ abstract class BottomNavigationBarComponent extends Component
|
|||||||
const BottomNavigationBarComponent({
|
const BottomNavigationBarComponent({
|
||||||
this.onTap,
|
this.onTap,
|
||||||
this.currentIndex = 0,
|
this.currentIndex = 0,
|
||||||
|
this.items = const <BottomNavigationBarItem>[],
|
||||||
super.key,
|
super.key,
|
||||||
});
|
});
|
||||||
|
|
||||||
final int currentIndex;
|
final int currentIndex;
|
||||||
final void Function(BuildContext, int)? onTap;
|
final void Function(BuildContext, int)? onTap;
|
||||||
|
final List<BottomNavigationBarItem> items;
|
||||||
}
|
}
|
||||||
|
@ -9,10 +9,12 @@ part of 'bottom_navigation_bar_component.dart';
|
|||||||
abstract class $BottomNavigationBarComponentCWProxy {
|
abstract class $BottomNavigationBarComponentCWProxy {
|
||||||
BottomNavigationBarComponent onTap(void Function(BuildContext, int)? onTap);
|
BottomNavigationBarComponent onTap(void Function(BuildContext, int)? onTap);
|
||||||
BottomNavigationBarComponent currentIndex(int? currentIndex);
|
BottomNavigationBarComponent currentIndex(int? currentIndex);
|
||||||
|
BottomNavigationBarComponent items(List<BottomNavigationBarItem>? items);
|
||||||
BottomNavigationBarComponent key(Key? key);
|
BottomNavigationBarComponent key(Key? key);
|
||||||
BottomNavigationBarComponent call({
|
BottomNavigationBarComponent call({
|
||||||
void Function(BuildContext, int)? onTap,
|
void Function(BuildContext, int)? onTap,
|
||||||
int? currentIndex,
|
int? currentIndex,
|
||||||
|
List<BottomNavigationBarItem>? items,
|
||||||
Key? key,
|
Key? key,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user