feat : new app bar

This commit is contained in:
2025-08-05 08:04:04 +03:30
parent 2c10800ce7
commit 7b8cfb5ae9
2 changed files with 81 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:rasadyar_core/core.dart';
import 'package:rasadyar_livestock/presentation/widgets/base_page/logic.dart';
RAppBar liveStockAppBar({
RAppBar2 liveStockAppBar({
bool hasBack = true,
bool hasFilter = true,
bool hasSearch = true,
@@ -10,16 +10,17 @@ RAppBar liveStockAppBar({
VoidCallback? onBackPressed,
GestureTapCallback? onFilterTap,
GestureTapCallback? onSearchTap,
String? title,
}) {
return RAppBar(
return RAppBar2(
hasBack: isBase == true ? false : hasBack,
onBackPressed: onBackPressed,
leadingWidth: 155,
leadingWidth: 180.w,
leading: Row(
mainAxisSize: MainAxisSize.min,
spacing: 6,
children: [
Text('رصددام', style: AppFonts.yekan16Bold.copyWith(color: Colors.white)),
Text(title ?? 'رصددام', style: AppFonts.yekan16Bold.copyWith(color: Colors.white)),
Assets.vec.appBarInspectionSvg.svg(width: 24, height: 24),
],
),