add fcs shipment in processing,update cargo types for carton
This commit is contained in:
@@ -5,11 +5,14 @@ import 'package:fcs/helpers/theme.dart';
|
||||
import 'package:fcs/localization/app_translations.dart';
|
||||
import 'package:fcs/pages/main/model/language_model.dart';
|
||||
import 'package:fcs/pages/widgets/local_text.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_vector_icons/flutter_vector_icons.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
import '../customer/customer_detail.dart';
|
||||
import '../widgets/label_widgets.dart';
|
||||
|
||||
final log = Logger('Util');
|
||||
@@ -494,7 +497,15 @@ Widget userDisplayBox(BuildContext context,
|
||||
LocalText(context, lableKey,
|
||||
color: Colors.black54, fontSize: 15),
|
||||
InkWell(
|
||||
onTap: null,
|
||||
onTap: showLink
|
||||
? () {
|
||||
Navigator.push(
|
||||
context,
|
||||
CupertinoPageRoute(
|
||||
builder: (context) =>
|
||||
CustomerDetail(fcsId: fcsID)));
|
||||
}
|
||||
: null,
|
||||
child: Text(name ?? '',
|
||||
style: showLink
|
||||
? TextStyle(
|
||||
@@ -518,3 +529,36 @@ Widget userDisplayBox(BuildContext context,
|
||||
)
|
||||
: const SizedBox();
|
||||
}
|
||||
|
||||
Widget settingRow(BuildContext context,
|
||||
{required String label,
|
||||
IconData? iconData,
|
||||
Widget? image,
|
||||
Function()? onTap,
|
||||
String? text}) {
|
||||
return ListTile(
|
||||
minTileHeight: 50,
|
||||
contentPadding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||
onTap: onTap,
|
||||
leading: iconData != null
|
||||
? Icon(iconData, color: primaryColor)
|
||||
: image ?? const SizedBox(),
|
||||
title: LocalText(context, label, fontSize: 15, color: Colors.black54),
|
||||
subtitle: text != null
|
||||
? Padding(
|
||||
padding: const EdgeInsets.only(right: 10),
|
||||
child: Text(
|
||||
text,
|
||||
style: const TextStyle(color: Colors.black),
|
||||
),
|
||||
)
|
||||
: const SizedBox(),
|
||||
trailing: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(SimpleLineIcons.arrow_right, color: labelColor, size: 16),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user