|
|
|
|
@ -16,7 +16,7 @@ class ADatePicker extends StatelessWidget {
|
|
|
|
|
final Function(DateTime)? onDatePicker; // Nullable
|
|
|
|
|
final bool enable;
|
|
|
|
|
final bool withBorder;
|
|
|
|
|
final bool ?withIcon;
|
|
|
|
|
final bool withIcon;
|
|
|
|
|
final Color? backgroundColor; // Nullable
|
|
|
|
|
final bool formatDateWithTime;
|
|
|
|
|
final double? height; // Nullable
|
|
|
|
|
@ -30,7 +30,7 @@ class ADatePicker extends StatelessWidget {
|
|
|
|
|
this.hideShadow = false,
|
|
|
|
|
this.hint,
|
|
|
|
|
this.date,
|
|
|
|
|
this.withIcon = false,
|
|
|
|
|
this.withIcon = true,
|
|
|
|
|
this.formatDateWithTime = false,
|
|
|
|
|
this.onDatePicker,
|
|
|
|
|
this.from,
|
|
|
|
|
@ -71,8 +71,7 @@ class ADatePicker extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
).expanded,
|
|
|
|
|
enable ? 16.width : const Spacer(),
|
|
|
|
|
|
|
|
|
|
"calender".toSvgAsset(width: 20, color: context.isDark ? AppColor.neutral10 : null),
|
|
|
|
|
withIcon ? "calender".toSvgAsset(width: 20, color: context.isDark ? AppColor.neutral10 : null) : const SizedBox(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).onPress(enable
|
|
|
|
|
|