|
|
|
|
@ -144,6 +144,69 @@ class _VerifyAssetDetailsState extends State<VerifyAssetDetails> with TickerProv
|
|
|
|
|
showTimePicker(
|
|
|
|
|
context: context,
|
|
|
|
|
initialTime: TimeOfDay.now(),
|
|
|
|
|
builder: (BuildContext context, Widget? child) {
|
|
|
|
|
return Theme(
|
|
|
|
|
data: Theme.of(context).copyWith(
|
|
|
|
|
timePickerTheme: TimePickerThemeData(
|
|
|
|
|
backgroundColor: AppColor.bottomSheetColor(context),
|
|
|
|
|
hourMinuteShape: RoundedRectangleBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
side: BorderSide(color: AppColor.borderColor(context)),
|
|
|
|
|
),
|
|
|
|
|
dayPeriodBorderSide: BorderSide(color: AppColor.borderColor(context)),
|
|
|
|
|
dayPeriodColor: WidgetStateColor.resolveWith((states) {
|
|
|
|
|
if (states.contains(WidgetState.selected)) {
|
|
|
|
|
return AppColor.primary10;
|
|
|
|
|
}
|
|
|
|
|
return Colors.transparent;
|
|
|
|
|
}),
|
|
|
|
|
dayPeriodTextColor: WidgetStateColor.resolveWith((states) {
|
|
|
|
|
if (states.contains(WidgetState.selected)) {
|
|
|
|
|
return Colors.white;
|
|
|
|
|
}
|
|
|
|
|
return AppColor.textStyleColor(context);
|
|
|
|
|
}),
|
|
|
|
|
dialHandColor: AppColor.primary10,
|
|
|
|
|
dialBackgroundColor: AppColor.scaffoldBackground(context),
|
|
|
|
|
hourMinuteColor: WidgetStateColor.resolveWith((states) {
|
|
|
|
|
if (states.contains(WidgetState.selected)) {
|
|
|
|
|
return AppColor.primary10;
|
|
|
|
|
}
|
|
|
|
|
return AppColor.scaffoldBackground(context);
|
|
|
|
|
}),
|
|
|
|
|
hourMinuteTextColor: WidgetStateColor.resolveWith((states) {
|
|
|
|
|
if (states.contains(WidgetState.selected)) {
|
|
|
|
|
return Colors.white;
|
|
|
|
|
}
|
|
|
|
|
return AppColor.textStyleColor(context);
|
|
|
|
|
}),
|
|
|
|
|
dialTextColor: WidgetStateColor.resolveWith((states) {
|
|
|
|
|
if (states.contains(WidgetState.selected)) {
|
|
|
|
|
return Colors.white;
|
|
|
|
|
}
|
|
|
|
|
return AppColor.textStyleColor(context);
|
|
|
|
|
}),
|
|
|
|
|
entryModeIconColor: AppColor.primary10,
|
|
|
|
|
helpTextStyle: TextStyle(
|
|
|
|
|
color: AppColor.textStyleColor(context),
|
|
|
|
|
),
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(16),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
textButtonTheme: TextButtonThemeData(
|
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
|
foregroundColor: AppColor.primary10,
|
|
|
|
|
textStyle: const TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: child!,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
).then((selectedTime) {
|
|
|
|
|
// Handle the selected date and time here.
|
|
|
|
|
if (selectedTime != null) {
|
|
|
|
|
@ -261,6 +324,69 @@ class _VerifyAssetDetailsState extends State<VerifyAssetDetails> with TickerProv
|
|
|
|
|
showTimePicker(
|
|
|
|
|
context: context,
|
|
|
|
|
initialTime: TimeOfDay.now(),
|
|
|
|
|
builder: (BuildContext context, Widget? child) {
|
|
|
|
|
return Theme(
|
|
|
|
|
data: Theme.of(context).copyWith(
|
|
|
|
|
timePickerTheme: TimePickerThemeData(
|
|
|
|
|
backgroundColor: AppColor.bottomSheetColor(context),
|
|
|
|
|
hourMinuteShape: RoundedRectangleBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(12),
|
|
|
|
|
side: BorderSide(color: AppColor.borderColor(context)),
|
|
|
|
|
),
|
|
|
|
|
dayPeriodBorderSide: BorderSide(color: AppColor.borderColor(context)),
|
|
|
|
|
dayPeriodColor: WidgetStateColor.resolveWith((states) {
|
|
|
|
|
if (states.contains(WidgetState.selected)) {
|
|
|
|
|
return AppColor.primary10;
|
|
|
|
|
}
|
|
|
|
|
return Colors.transparent;
|
|
|
|
|
}),
|
|
|
|
|
dayPeriodTextColor: WidgetStateColor.resolveWith((states) {
|
|
|
|
|
if (states.contains(WidgetState.selected)) {
|
|
|
|
|
return Colors.white;
|
|
|
|
|
}
|
|
|
|
|
return AppColor.textStyleColor(context);
|
|
|
|
|
}),
|
|
|
|
|
dialHandColor: AppColor.primary10,
|
|
|
|
|
dialBackgroundColor: AppColor.scaffoldBackground(context),
|
|
|
|
|
hourMinuteColor: WidgetStateColor.resolveWith((states) {
|
|
|
|
|
if (states.contains(WidgetState.selected)) {
|
|
|
|
|
return AppColor.primary10;
|
|
|
|
|
}
|
|
|
|
|
return AppColor.scaffoldBackground(context);
|
|
|
|
|
}),
|
|
|
|
|
hourMinuteTextColor: WidgetStateColor.resolveWith((states) {
|
|
|
|
|
if (states.contains(WidgetState.selected)) {
|
|
|
|
|
return Colors.white;
|
|
|
|
|
}
|
|
|
|
|
return AppColor.textStyleColor(context);
|
|
|
|
|
}),
|
|
|
|
|
dialTextColor: WidgetStateColor.resolveWith((states) {
|
|
|
|
|
if (states.contains(WidgetState.selected)) {
|
|
|
|
|
return Colors.white;
|
|
|
|
|
}
|
|
|
|
|
return AppColor.textStyleColor(context);
|
|
|
|
|
}),
|
|
|
|
|
entryModeIconColor: AppColor.primary10,
|
|
|
|
|
helpTextStyle: TextStyle(
|
|
|
|
|
color: AppColor.textStyleColor(context),
|
|
|
|
|
),
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(16),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
textButtonTheme: TextButtonThemeData(
|
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
|
foregroundColor: AppColor.primary10,
|
|
|
|
|
textStyle: const TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: child!,
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
).then((selectedTime) {
|
|
|
|
|
// Handle the selected date and time here.
|
|
|
|
|
if (selectedTime != null) {
|
|
|
|
|
@ -405,7 +531,7 @@ class _VerifyAssetDetailsState extends State<VerifyAssetDetails> with TickerProv
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
8.width,
|
|
|
|
|
Text(element.name ?? '', style: AppTextStyles.tinyFont.copyWith(color: AppColor.neutral120)),
|
|
|
|
|
Text(element.name ?? '', style: AppTextStyles.tinyFont.copyWith(color: AppColor.textColor(context))),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
|