Files

35 lines
1.1 KiB
Dart
Raw Permalink Normal View History

2025-06-30 09:33:14 +03:30
import 'package:flutter/cupertino.dart';
import 'package:rasadyar_core/core.dart';
2025-06-30 10:36:30 +03:30
Widget buildPageRoute(List<String> route) {
2025-09-24 16:24:45 +03:30
if(route.isEmpty){
return SizedBox.shrink();
}
2025-06-30 10:36:30 +03:30
return Padding(
2025-07-07 08:36:26 +03:30
padding: const EdgeInsets.fromLTRB(0, 4, 7, 4),
2025-07-14 09:27:13 +03:30
child: Text(
2025-09-24 16:24:45 +03:30
route.join(" > "),
2025-07-14 09:27:13 +03:30
style: AppFonts.yekan14.copyWith(color: AppColor.bgDark),
),
2025-06-30 10:36:30 +03:30
);
2025-06-30 09:33:14 +03:30
}
2025-09-22 16:21:17 +03:30
Widget buildContainerPageRoute(List<String> route) {
return Container(
height: 24.h,
margin: EdgeInsets.symmetric(horizontal: 8.w,vertical: 4.h),
decoration: BoxDecoration(color: Color(0xFFE3E3E3), borderRadius: BorderRadius.circular(2.r)),
padding: EdgeInsets.symmetric(horizontal: 6.w),
child: ListView.separated(
scrollDirection: Axis.horizontal,
physics: NeverScrollableScrollPhysics(),
shrinkWrap: true,
itemBuilder: (context, index) => Center(
child: Text(route[index], style: AppFonts.yekan14.copyWith(color: AppColor.labelTextColor)),
),
separatorBuilder: (context, index) => Assets.vec.arrowLeftSvg.svg(height: 24.h,fit: BoxFit.fitHeight),
itemCount: route.length,
),
);
}