This commit is contained in:
Odein
2023-11-22 14:53:35 +04:30
parent 22d0390e90
commit cd3b1080f5
298 changed files with 800 additions and 413 deletions
View File
+1 -1
View File
@@ -364,7 +364,7 @@ class MyItemsDetailsDataBox extends StatelessWidget {
),
content: SizedBox(
width: _deviceBlockSize,
height: 250,
height: 220,
child: Column(
children: [
Text(
View File
View File
View File
View File
+11 -1
View File
@@ -9,7 +9,7 @@ class ItemHistoryDate extends StatelessWidget {
}) : _deviceBlockSize = deviceBlockSize;
final double _deviceBlockSize;
final MyItemResultObject items;
final ItemHistoryObject items;
@override
Widget build(BuildContext context) {
@@ -22,6 +22,16 @@ class ItemHistoryDate extends StatelessWidget {
color: Colors.grey,
),
),
// Text(
// DateFormat.yMMMd().format(
// DateTime.parse(
// datas.createdAt,
// ),
// ),
// style: TextStyle(
// color: kDarkBlue,
// ),
// ),
SizedBox(
width: 6.0,
),
@@ -0,0 +1,70 @@
import 'package:cssd/models/my_item_model.dart';
import 'package:flutter/material.dart';
class UserItemDataBox extends StatelessWidget {
final ItemHistoryObject? user;
const UserItemDataBox({
Key? key,
required double deviceBlockSize,
this.user,
}) : _deviceBlockSize = deviceBlockSize,
super(key: key);
final double _deviceBlockSize;
@override
Widget build(BuildContext context) {
return Card(
elevation: 1,
child: Container(
padding: EdgeInsets.all(8),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Container(
padding: const EdgeInsets.all(6.0),
child: Text(
user!.userHistoryId.toString(),
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 5 * _deviceBlockSize,
),
),
),
SizedBox(
width: 3 * _deviceBlockSize,
),
// Spacer(),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
width: 30 * _deviceBlockSize,
child: Text(
user!.userHistoryName,
style: TextStyle(
fontSize: 3 * _deviceBlockSize,
fontWeight: FontWeight.w700,
),
),
),
Container(
width: 30 * _deviceBlockSize,
child: Text(
user!.userHistoryPhon,
style: TextStyle(
fontSize: 3 * _deviceBlockSize,
fontWeight: FontWeight.w700,
color: Colors.grey,
),
),
),
],
),
],
),
),
);
}
}
View File
View File