feat : buy page and widgets

This commit is contained in:
2025-06-30 10:36:30 +03:30
parent 7cec6bd084
commit 79adab71e3
11 changed files with 138 additions and 25 deletions

View File

@@ -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),
],
);