forked from eatvio/eatvio_app
fix(consultation): state filter, avatar
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:eatvio_app/core/const.dart';
|
||||
import 'package:eatvio_app/core/theme/custom_text_style.dart';
|
||||
import 'package:eatvio_app/core/theme/theme_helper.dart';
|
||||
import 'package:eatvio_app/core/widgets/custom_divider.dart';
|
||||
@@ -73,7 +74,7 @@ class _ConsultationCardWidgetState extends State<ConsultationCardWidget> {
|
||||
children: [
|
||||
CircleAvatar(
|
||||
radius: 30,
|
||||
backgroundImage: NetworkImage(widget.consultationsModel.userProfilePhotoUrl),
|
||||
backgroundImage: NetworkImage(baseUrl + widget.consultationsModel.userProfilePhotoUrl),
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
Column(
|
||||
|
||||
@@ -10,8 +10,15 @@ abstract class ConsultationService {
|
||||
|
||||
@GET('/api/consultations')
|
||||
Future<ConsultationPaginationModel> getConsultations({
|
||||
@Query('filters[last_state][\$notIn][]') String query = 'canceled_by_the_initiator',
|
||||
@Query('filters[last_state][\$notIn][]') String query2 = 'charge_was_collected',
|
||||
@Query('filters[last_state][\$notIn][]') List<String> excludedStates = const [
|
||||
'initied',
|
||||
'in_coordination',
|
||||
'start_date_has_been_set',
|
||||
'pending_payment',
|
||||
'canceled_by_the_initiator',
|
||||
'charge_was_collected',
|
||||
],
|
||||
@Query('sort[]') String sort = 'created_at:desc',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -964,7 +964,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
context.pushTransparentRoute(
|
||||
rootNavigator: true,
|
||||
PhotoViewScreen(
|
||||
imageUrls: [state.profile.profilePhotoUrl],
|
||||
imageUrls: [baseUrl + state.profile.profilePhotoUrl],
|
||||
index: 0,
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user