mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 07:58:54 +03:30
2.2.0
This commit is contained in:
Regular → Executable
Regular → Executable
+1
-1
@@ -364,7 +364,7 @@ class MyItemsDetailsDataBox extends StatelessWidget {
|
||||
),
|
||||
content: SizedBox(
|
||||
width: _deviceBlockSize,
|
||||
height: 250,
|
||||
height: 220,
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
|
||||
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+11
-1
@@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user