forked from eatvio/eatvio_app
feat(diary): consultant comments
This commit is contained in:
@@ -218,7 +218,7 @@ class _DayWidgetState extends State<DayWidget> {
|
||||
),
|
||||
if (state.dailyScheduleErrors[widget.index].isNotEmpty) ...[
|
||||
const SizedBox(height: 12),
|
||||
CustomErrorWidget(error: state.dailyScheduleErrors[widget.index]),
|
||||
ValidationErrorWidget(error: state.dailyScheduleErrors[widget.index]),
|
||||
],
|
||||
const SizedBox(height: 20),
|
||||
],
|
||||
|
||||
@@ -68,7 +68,7 @@ class _DietDurationDropDownWidgetState extends State<DietDurationDropDownWidget>
|
||||
const SizedBox(
|
||||
height: 4,
|
||||
),
|
||||
CustomErrorWidget(error: state.dietDurationError ?? ''),
|
||||
ValidationErrorWidget(error: state.dietDurationError ?? ''),
|
||||
],
|
||||
],
|
||||
);
|
||||
|
||||
@@ -155,7 +155,7 @@ class _DietImagePickerWidgetState extends State<DietImagePickerWidget> {
|
||||
),
|
||||
),
|
||||
),
|
||||
if (state.dietImageError != null) ...[const SizedBox(height: 8), CustomErrorWidget(error: state.dietImageError ?? '')],
|
||||
if (state.dietImageError != null) ...[const SizedBox(height: 8), ValidationErrorWidget(error: state.dietImageError ?? '')],
|
||||
],
|
||||
);
|
||||
},
|
||||
|
||||
@@ -3,8 +3,8 @@ import 'package:eatvio_app/core/theme/theme_helper.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
|
||||
class CustomErrorWidget extends StatelessWidget {
|
||||
const CustomErrorWidget({super.key, required this.error});
|
||||
class ValidationErrorWidget extends StatelessWidget {
|
||||
const ValidationErrorWidget({super.key, required this.error});
|
||||
final String error;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -76,7 +76,7 @@ class _StatusDropDownWidgetState extends State<StatusDropDownWidget> {
|
||||
const SizedBox(
|
||||
height: 4,
|
||||
),
|
||||
CustomErrorWidget(error: state.dietStateError ?? ''),
|
||||
ValidationErrorWidget(error: state.dietStateError ?? ''),
|
||||
],
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user