Files

41 lines
1.1 KiB
Dart
Raw Permalink Normal View History

2025-06-30 09:11:33 +03:30
import 'package:flutter/material.dart';
import 'package:rasadyar_core/core.dart';
2025-09-24 16:24:45 +03:30
/// Creates a customized AppBar for the Rasadyar Chicken app.
2025-06-30 09:11:33 +03:30
RAppBar chickenAppBar({
bool hasBack = true,
bool hasFilter = true,
bool hasSearch = true,
2025-06-30 10:36:30 +03:30
bool isBase = false,
2025-09-24 16:24:45 +03:30
bool hasNotification = false,
bool hasNews = false,
int? backId,
VoidCallback? onBackTap,
VoidCallback? onFilterTap,
VoidCallback? onSearchTap,
VoidCallback? onNewsTap,
VoidCallback? onNotificationTap,
2025-06-30 09:11:33 +03:30
}) {
return RAppBar(
2025-09-24 16:24:45 +03:30
hasBack: hasBack,
hasSearch: hasSearch,
hasNotification: hasNotification,
hasNews: hasNews,
isBase: isBase,
backId: backId,
2025-09-24 21:42:22 +03:30
hasFilter: hasFilter,
2025-09-27 09:35:00 +03:30
onFilterTap: onFilterTap,
2025-09-24 16:24:45 +03:30
onSearchTap: onSearchTap,
onBackTap: onBackTap,
onNotificationTap: onNotificationTap,
onNewsTap: onNewsTap,
backgroundColor: AppColor.blueNormal,
children: [
2025-09-25 17:25:55 +03:30
const SizedBox(width: 6),
Text('رصدطیور', style: AppFonts.yekan16Bold.copyWith(color: Colors.white)),
2025-09-24 16:24:45 +03:30
const SizedBox(width: 6),
Assets.vec.chickenSvg.svg(height: 24, width: 24),
2025-06-30 09:11:33 +03:30
],
);
}