|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:test_sa/extensions/context_extension.dart';
|
|
|
|
|
import 'package:test_sa/extensions/int_extensions.dart';
|
|
|
|
|
import 'package:test_sa/extensions/string_extensions.dart';
|
|
|
|
|
import 'package:test_sa/extensions/text_extensions.dart';
|
|
|
|
|
import 'package:test_sa/extensions/widget_extensions.dart';
|
|
|
|
|
import 'package:test_sa/new_views/app_style/app_color.dart';
|
|
|
|
|
|
|
|
|
|
class InitialVisitCard extends StatelessWidget {
|
|
|
|
|
const InitialVisitCard({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(14),
|
|
|
|
|
color: AppColor.white10,
|
|
|
|
|
),
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 12.toScreenWidth, vertical: 14.toScreenHeight),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
|
|
|
|
|
Text(
|
|
|
|
|
DateTime.now().toString().toInitialVisitCardFormat,
|
|
|
|
|
textAlign: TextAlign.end,
|
|
|
|
|
style: AppTextStyles.heading6.copyWith(color: context.isDark ? AppColor.neutral30 : AppColor.black10),
|
|
|
|
|
),
|
|
|
|
|
"edit_icon".toSvgAsset(height: 21, width: 21).onPress(() {
|
|
|
|
|
//open bottom sheet again with the informations added...
|
|
|
|
|
}),
|
|
|
|
|
]),
|
|
|
|
|
2.height,
|
|
|
|
|
context.translation.visitDateAndTime.heading6(context).custom(color: AppColor.neutral120),
|
|
|
|
|
8.height,
|
|
|
|
|
'Comments for the visit will be visible here for reference'.heading6(context).custom(color: AppColor.neutral120),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|