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
View File
+3 -3
View File
@@ -9,7 +9,7 @@ class PackageHistoryDate extends StatelessWidget {
}) : _deviceBlockSize = deviceBlockSize;
final double _deviceBlockSize;
final MyPackageResultObject packages;
final PackageHistoryObject packages;
@override
Widget build(BuildContext context) {
@@ -26,7 +26,7 @@ class PackageHistoryDate extends StatelessWidget {
width: 6.0,
),
Text(
packages.fromDate!,
packages.fromDate,
style: TextStyle(
fontSize: 3 * _deviceBlockSize,
fontWeight: FontWeight.w700,
@@ -49,7 +49,7 @@ class PackageHistoryDate extends StatelessWidget {
width: 6.0,
),
Text(
packages.toDate!,
packages.toDate,
style: TextStyle(
fontSize: 3 * _deviceBlockSize,
fontWeight: FontWeight.w700,
@@ -0,0 +1,70 @@
import 'package:cssd/models/my_package_model.dart';
import 'package:flutter/material.dart';
class UserPackageDataBox extends StatelessWidget {
final PackageHistoryObject? user;
const UserPackageDataBox({
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