feat : buy page and widgets
This commit is contained in:
@@ -5,12 +5,13 @@ RAppBar chickenAppBar({
|
||||
bool hasBack = true,
|
||||
bool hasFilter = true,
|
||||
bool hasSearch = true,
|
||||
bool isBase = false,
|
||||
VoidCallback? onBackPressed,
|
||||
GestureTapCallback? onFilterTap,
|
||||
GestureTapCallback? onSearchTap,
|
||||
}) {
|
||||
return RAppBar(
|
||||
hasBack: hasBack,
|
||||
hasBack: isBase == true ? false : hasBack,
|
||||
onBackPressed: onBackPressed,
|
||||
leadingWidth: 155,
|
||||
leading: Row(
|
||||
@@ -26,9 +27,9 @@ RAppBar chickenAppBar({
|
||||
],
|
||||
),
|
||||
additionalActions: [
|
||||
if (hasFilter) filterWidget(onFilterTap),
|
||||
if (!isBase && hasFilter) filterWidget(onFilterTap),
|
||||
SizedBox(width: 8),
|
||||
if (hasSearch) searchWidget(onSearchTap),
|
||||
if (!isBase && hasSearch) searchWidget(onSearchTap),
|
||||
SizedBox(width: 8),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user