Skip to content

Commit d257dc0

Browse files
committed
refactor: update feed repository payload map syntax and clean up unused imports in adoption center screen
1 parent 34eff5e commit d257dc0

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

lib/repositories/feed_repository.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ class FeedRepository {
269269
}) async {
270270
final payload = {
271271
'caption': caption,
272-
if (location != null) 'location': location,
273-
if (taggedPetIds != null) 'tagged_pet_ids': taggedPetIds,
274-
if (taggedPetNames != null) 'tagged_pet_names': taggedPetNames,
272+
'location': ?location,
273+
'tagged_pet_ids': ?taggedPetIds,
274+
'tagged_pet_names': ?taggedPetNames,
275275
};
276276

277277
final data = await supabase

lib/views/adoption_center_screen.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import 'package:cached_network_image/cached_network_image.dart';
33
import 'package:flutter/material.dart';
44
import 'package:flutter_riverpod/flutter_riverpod.dart';
55
import 'package:google_fonts/google_fonts.dart';
6-
import '../theme/app_theme.dart';
7-
import '../widgets/brand_logo.dart';
86

97
class AdoptionCenterScreen extends ConsumerStatefulWidget {
108
const AdoptionCenterScreen({super.key});

0 commit comments

Comments
 (0)