|
|
|
@ -42,7 +42,11 @@ class _AssetDeliveryStageTabPageState extends State<AssetDeliveryStageTabPage> {
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(left: 16.toScreenWidth, right: 16.toScreenWidth, top: 12.toScreenHeight),
|
|
|
|
margin: EdgeInsets.only(left: 16.toScreenWidth, right: 16.toScreenWidth, top: 12.toScreenHeight),
|
|
|
|
decoration: BoxDecoration(color: context.isDark ? AppColor.neutral50 : AppColor.white10, borderRadius: BorderRadius.circular(10)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
color: AppColor.tabBarBackground(context),
|
|
|
|
|
|
|
|
border: Border.all(color: AppColor.tabBarBorder(context)),
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(20),
|
|
|
|
|
|
|
|
),
|
|
|
|
child: TabBar(
|
|
|
|
child: TabBar(
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 4.toScreenHeight, horizontal: 4.toScreenWidth),
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 4.toScreenHeight, horizontal: 4.toScreenWidth),
|
|
|
|
labelColor: context.isDark ? AppColor.neutral30 : AppColor.black20,
|
|
|
|
labelColor: context.isDark ? AppColor.neutral30 : AppColor.black20,
|
|
|
|
@ -52,7 +56,11 @@ class _AssetDeliveryStageTabPageState extends State<AssetDeliveryStageTabPage> {
|
|
|
|
indicatorPadding: EdgeInsets.zero,
|
|
|
|
indicatorPadding: EdgeInsets.zero,
|
|
|
|
indicatorSize: TabBarIndicatorSize.tab,
|
|
|
|
indicatorSize: TabBarIndicatorSize.tab,
|
|
|
|
dividerColor: Colors.transparent,
|
|
|
|
dividerColor: Colors.transparent,
|
|
|
|
indicator: BoxDecoration(color: context.isDark ? AppColor.neutral60 : AppColor.neutral110, borderRadius: BorderRadius.circular(7)),
|
|
|
|
overlayColor: WidgetStateProperty.all(Colors.transparent),
|
|
|
|
|
|
|
|
indicator: BoxDecoration(
|
|
|
|
|
|
|
|
color: AppColor.background(context),
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(15),
|
|
|
|
|
|
|
|
boxShadow: [BoxShadow(color: Colors.black.withOpacity(0.03), blurRadius: 5, offset: const Offset(0, 0), spreadRadius: 0)]),
|
|
|
|
tabs: [
|
|
|
|
tabs: [
|
|
|
|
Tab(text: context.translation.details, height: 57.toScreenHeight),
|
|
|
|
Tab(text: context.translation.details, height: 57.toScreenHeight),
|
|
|
|
Tab(text: context.translation.historyLogs, height: 57.toScreenHeight),
|
|
|
|
Tab(text: context.translation.historyLogs, height: 57.toScreenHeight),
|
|
|
|
@ -73,7 +81,6 @@ class _AssetDeliveryStageTabPageState extends State<AssetDeliveryStageTabPage> {
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String getPageTitle({AssetDeliveryStageEnum? deliveryStage}) {
|
|
|
|
String getPageTitle({AssetDeliveryStageEnum? deliveryStage}) {
|
|
|
|
if (deliveryStage == AssetDeliveryStageEnum.deliveryInspection) {
|
|
|
|
if (deliveryStage == AssetDeliveryStageEnum.deliveryInspection) {
|
|
|
|
return 'Delivery Inspection'.addTranslation;
|
|
|
|
return 'Delivery Inspection'.addTranslation;
|
|
|
|
|