feat : new app bar
This commit is contained in:
@@ -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),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user