clear before notificaciones

This commit is contained in:
Felipe
2024-04-20 11:39:01 -05:00
parent c874178019
commit 34135b25e1
6 changed files with 34 additions and 21 deletions
+15 -5
View File
@@ -9,6 +9,7 @@ import 'package:intl/intl.dart';
import 'package:professional_repository/professional_repository.dart';
import 'package:prosappco/blocs/service_bloc/service_bloc.dart';
import 'package:prosappco/components/general_primary_button.dart';
import 'package:prosappco/components/general_secondary_button.dart';
import 'package:service_repository/service_repository.dart';
import 'package:setting_repository/setting_repository.dart';
import 'package:user_repository/user_repository.dart';
@@ -245,8 +246,17 @@ class _UserServiceScreenState extends State<UserServiceScreen> {
Expanded(
child: customMessageStatus(service),
),
customButton(service, context),
const SizedBox(height: 20),
const Divider(
height: 1,
thickness: 0.5,
),
Padding(
padding: const EdgeInsets.symmetric(
vertical: 10,
horizontal: 15,
),
child: customButton(service, context),
),
],
);
}
@@ -341,10 +351,10 @@ class _UserServiceScreenState extends State<UserServiceScreen> {
);
}
GeneralPrimaryButton customButton(
GeneralSecondaryButton customButton(
ServiceEntity service, BuildContext context) {
if (service.status == ServiceStatus.pending) {
return GeneralPrimaryButton(
return GeneralSecondaryButton(
onPressed: () {
final currentState = context.read<ServiceBloc>().state;
if (currentState is ServiceLoaded) {
@@ -361,7 +371,7 @@ class _UserServiceScreenState extends State<UserServiceScreen> {
);
}
return GeneralPrimaryButton(
return GeneralSecondaryButton(
onPressed: () {
Navigator.pop(context);
},