update pages for carton
This commit is contained in:
@@ -471,16 +471,22 @@ Widget userSearchBox(BuildContext context,
|
||||
}
|
||||
|
||||
Widget userDisplayBox(BuildContext context,
|
||||
{required String lableKey, IconData? icon, String? name, String? fcsID}) {
|
||||
{required String lableKey,
|
||||
IconData? icon,
|
||||
String? name,
|
||||
String? fcsID,
|
||||
bool showLink = true}) {
|
||||
return fcsID != null && fcsID != ""
|
||||
? Padding(
|
||||
padding: const EdgeInsets.only(top: 8.0, bottom: 8),
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 15),
|
||||
child: Icon(icon, color: primaryColor)),
|
||||
icon != null
|
||||
? Padding(
|
||||
padding: const EdgeInsets.only(right: 15),
|
||||
child: Icon(icon, color: primaryColor))
|
||||
: const SizedBox(),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
@@ -489,16 +495,18 @@ Widget userDisplayBox(BuildContext context,
|
||||
color: Colors.black54, fontSize: 15),
|
||||
InkWell(
|
||||
onTap: null,
|
||||
child: Text(
|
||||
name ?? '',
|
||||
style: TextStyle(
|
||||
shadows: [
|
||||
Shadow(color: linkColor, offset: Offset(0, -2))
|
||||
],
|
||||
color: Colors.transparent,
|
||||
decoration: TextDecoration.underline,
|
||||
decorationColor: linkColor),
|
||||
),
|
||||
child: Text(name ?? '',
|
||||
style: showLink
|
||||
? TextStyle(
|
||||
shadows: [
|
||||
Shadow(
|
||||
color: linkColor,
|
||||
offset: Offset(0, -2))
|
||||
],
|
||||
color: Colors.transparent,
|
||||
decoration: TextDecoration.underline,
|
||||
decorationColor: linkColor)
|
||||
: TextStyle(color: Colors.black)),
|
||||
),
|
||||
Text(fcsID,
|
||||
style: TextStyle(fontSize: 13, color: labelColor))
|
||||
|
||||
Reference in New Issue
Block a user