|
|
@ -137,9 +137,307 @@ class ShimmerLoadingAssetStatusCard extends StatelessWidget { |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
_buildAvatarAndIndex(), |
|
|
|
_buildAvatarAndIndex(), |
|
|
|
Divider(), |
|
|
|
Divider(), |
|
|
|
_buildInfoRow('Nama Peminjam:', '', 'PIC:', '', 11.5), |
|
|
|
_buildInfoRow('Nama Customer:', '', 'PIC/PJ:', '', 11.5), |
|
|
|
_buildInfoRow('Tanggal Peminjaman:', '', |
|
|
|
_buildInfoRow('Tanggal Peminjaman:', '', |
|
|
|
'Estimasi Pengembalian:', '', 11.5), |
|
|
|
'Estimasi Pengembalian:', '', 11.5), |
|
|
|
|
|
|
|
_buildInfoRow('Gudang:', '', '', '', 11.5), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget _buildAvatarAndIndex() { |
|
|
|
|
|
|
|
return Row( |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
_buildAvatar(), |
|
|
|
|
|
|
|
Expanded( |
|
|
|
|
|
|
|
child: Padding( |
|
|
|
|
|
|
|
padding: const EdgeInsets.only( |
|
|
|
|
|
|
|
left: 8.0, |
|
|
|
|
|
|
|
top: 8.0, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
child: Column( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
// Text( |
|
|
|
|
|
|
|
// '', |
|
|
|
|
|
|
|
// style: TextStyle( |
|
|
|
|
|
|
|
// fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
// fontSize: 11.5, |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
lineDivider(), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget lineDivider() { |
|
|
|
|
|
|
|
return Container( |
|
|
|
|
|
|
|
height: 13, |
|
|
|
|
|
|
|
width: double.infinity, |
|
|
|
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
|
|
|
color: Colors.grey[500], |
|
|
|
|
|
|
|
borderRadius: BorderRadius.vertical( |
|
|
|
|
|
|
|
top: Radius.circular(6), // Adjust top radius as needed |
|
|
|
|
|
|
|
bottom: Radius.circular(6), // Adjust bottom radius as needed |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget _buildAvatar() { |
|
|
|
|
|
|
|
return Container( |
|
|
|
|
|
|
|
child: CircleAvatar( |
|
|
|
|
|
|
|
radius: 11, |
|
|
|
|
|
|
|
backgroundColor: Colors.indigo, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget _buildInfoRow(String title1, String content1, String title2, |
|
|
|
|
|
|
|
String content2, double fontSize) { |
|
|
|
|
|
|
|
return Row( |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Expanded( |
|
|
|
|
|
|
|
child: Column( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
title1, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
fontSize: fontSize, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox(height: 3), |
|
|
|
|
|
|
|
lineDivider(), |
|
|
|
|
|
|
|
// Text( |
|
|
|
|
|
|
|
// content1, |
|
|
|
|
|
|
|
// style: TextStyle( |
|
|
|
|
|
|
|
// fontSize: fontSize - 0.5, |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox(width: 10), |
|
|
|
|
|
|
|
Expanded( |
|
|
|
|
|
|
|
child: Column( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
// lineDivider(), |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
title2, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
fontSize: fontSize, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox(height: 3), |
|
|
|
|
|
|
|
lineDivider() |
|
|
|
|
|
|
|
// Text( |
|
|
|
|
|
|
|
// content2, |
|
|
|
|
|
|
|
// style: TextStyle( |
|
|
|
|
|
|
|
// fontSize: fontSize - 0.5, |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ShimmerLoadingAssetStatusPengembalianCard extends StatelessWidget { |
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
|
|
|
return Column( |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Card( |
|
|
|
|
|
|
|
elevation: 0.0, |
|
|
|
|
|
|
|
shape: RoundedRectangleBorder( |
|
|
|
|
|
|
|
side: BorderSide(color: Colors.grey, width: 1.0), |
|
|
|
|
|
|
|
// borderRadius: BorderRadius.circular(10), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
child: Shimmer.fromColors( |
|
|
|
|
|
|
|
baseColor: Colors.grey[300]!, |
|
|
|
|
|
|
|
highlightColor: Colors.grey[100]!, |
|
|
|
|
|
|
|
child: Padding( |
|
|
|
|
|
|
|
padding: const EdgeInsets.only( |
|
|
|
|
|
|
|
top: 8.0, |
|
|
|
|
|
|
|
bottom: 8.0, |
|
|
|
|
|
|
|
left: 16.0, |
|
|
|
|
|
|
|
right: 16.0, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
child: Column( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
_buildAvatarAndIndex(), |
|
|
|
|
|
|
|
Divider(), |
|
|
|
|
|
|
|
_buildInfoRow( |
|
|
|
|
|
|
|
'PIC/PJ:', '', 'Tanggal Pengembalian:', '', 11.5), |
|
|
|
|
|
|
|
_buildInfoRow('Gudang:', '', 'Kondisi Barang:', '', 11.5), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget _buildAvatarAndIndex() { |
|
|
|
|
|
|
|
return Row( |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
_buildAvatar(), |
|
|
|
|
|
|
|
Expanded( |
|
|
|
|
|
|
|
child: Padding( |
|
|
|
|
|
|
|
padding: const EdgeInsets.only( |
|
|
|
|
|
|
|
left: 8.0, |
|
|
|
|
|
|
|
top: 8.0, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
child: Column( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
// Text( |
|
|
|
|
|
|
|
// '', |
|
|
|
|
|
|
|
// style: TextStyle( |
|
|
|
|
|
|
|
// fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
// fontSize: 11.5, |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
lineDivider(), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget lineDivider() { |
|
|
|
|
|
|
|
return Container( |
|
|
|
|
|
|
|
height: 13, |
|
|
|
|
|
|
|
width: double.infinity, |
|
|
|
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
|
|
|
color: Colors.grey[500], |
|
|
|
|
|
|
|
borderRadius: BorderRadius.vertical( |
|
|
|
|
|
|
|
top: Radius.circular(6), // Adjust top radius as needed |
|
|
|
|
|
|
|
bottom: Radius.circular(6), // Adjust bottom radius as needed |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget _buildAvatar() { |
|
|
|
|
|
|
|
return Container( |
|
|
|
|
|
|
|
child: CircleAvatar( |
|
|
|
|
|
|
|
radius: 11, |
|
|
|
|
|
|
|
backgroundColor: Colors.indigo, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget _buildInfoRow(String title1, String content1, String title2, |
|
|
|
|
|
|
|
String content2, double fontSize) { |
|
|
|
|
|
|
|
return Row( |
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Expanded( |
|
|
|
|
|
|
|
child: Column( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
title1, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
fontSize: fontSize, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox(height: 3), |
|
|
|
|
|
|
|
lineDivider(), |
|
|
|
|
|
|
|
// Text( |
|
|
|
|
|
|
|
// content1, |
|
|
|
|
|
|
|
// style: TextStyle( |
|
|
|
|
|
|
|
// fontSize: fontSize - 0.5, |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox(width: 10), |
|
|
|
|
|
|
|
Expanded( |
|
|
|
|
|
|
|
child: Column( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
// lineDivider(), |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
title2, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
fontSize: fontSize, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox(height: 3), |
|
|
|
|
|
|
|
lineDivider() |
|
|
|
|
|
|
|
// Text( |
|
|
|
|
|
|
|
// content2, |
|
|
|
|
|
|
|
// style: TextStyle( |
|
|
|
|
|
|
|
// fontSize: fontSize - 0.5, |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ShimmerLoadingAssetStatusTransferPetiCard extends StatelessWidget { |
|
|
|
|
|
|
|
@override |
|
|
|
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
|
|
|
return Column( |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Card( |
|
|
|
|
|
|
|
elevation: 0.0, |
|
|
|
|
|
|
|
shape: RoundedRectangleBorder( |
|
|
|
|
|
|
|
side: BorderSide(color: Colors.grey, width: 1.0), |
|
|
|
|
|
|
|
// borderRadius: BorderRadius.circular(10), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
child: Shimmer.fromColors( |
|
|
|
|
|
|
|
baseColor: Colors.grey[300]!, |
|
|
|
|
|
|
|
highlightColor: Colors.grey[100]!, |
|
|
|
|
|
|
|
child: Padding( |
|
|
|
|
|
|
|
padding: const EdgeInsets.only( |
|
|
|
|
|
|
|
top: 8.0, |
|
|
|
|
|
|
|
bottom: 8.0, |
|
|
|
|
|
|
|
left: 16.0, |
|
|
|
|
|
|
|
right: 16.0, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
child: Column( |
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
_buildAvatarAndIndex(), |
|
|
|
|
|
|
|
Divider(), |
|
|
|
|
|
|
|
_buildInfoRow( |
|
|
|
|
|
|
|
'Nama Customer:', '', 'Tanggal Transfer Peti:', '', 11.5), |
|
|
|
_buildInfoRow('Asal Gudang:', '', 'Tujuan Gudang:', '', 11.5), |
|
|
|
_buildInfoRow('Asal Gudang:', '', 'Tujuan Gudang:', '', 11.5), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|