mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 11:38:56 +03:30
2.2.0
This commit is contained in:
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+3
-3
@@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Regular → Executable
Regular → Executable
Reference in New Issue
Block a user