refactor : base page
This commit is contained in:
@@ -2,10 +2,13 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
|
||||
Widget buildPageRoute(List<String> route) {
|
||||
if(route.isEmpty){
|
||||
return SizedBox.shrink();
|
||||
}
|
||||
return Padding(
|
||||
padding: const EdgeInsets.fromLTRB(0, 4, 7, 4),
|
||||
child: Text(
|
||||
route.isEmpty ? 'خانه' : route.join(" > "),
|
||||
route.join(" > "),
|
||||
style: AppFonts.yekan14.copyWith(color: AppColor.bgDark),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user