update files to null seafty

design_3.0_latest
muhammad.abbasi 1 year ago
parent 1ce6f0f72c
commit bbcf093af3

@ -56,8 +56,8 @@ class _RequestDetailViewState extends State<RequestDetailView> {
final GlobalKey _detailsCardKey = GlobalKey(); final GlobalKey _detailsCardKey = GlobalKey();
void createBreakPoint() { void createBreakPoint() {
final RenderBox detailContainerBox = _detailsCardKey.currentContext?.findRenderObject() as RenderBox; // final RenderBox detailContainerBox = _detailsCardKey.currentContext?.findRenderObject() as RenderBox;
final detailContainerHeight = detailContainerBox?.size?.height; // final detailContainerHeight = detailContainerBox?.size?.height;
} }
@override @override

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

Loading…
Cancel
Save