Skip to content

Commit

Permalink
πŸ› FIX: Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
danhandev committed Sep 28, 2022
1 parent 1862f52 commit 88bf5d3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/page/detail_page/detailPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import 'package:cafegation/models/cafe.dart';
import 'package:firebase_auth/firebase_auth.dart';

class detailPage extends StatefulWidget {
const detailPage(
{Key? key, required this.cafeName})
: super(key: key);
const detailPage({Key? key, required this.cafeName}) : super(key: key);

final String cafeName;
@override
Expand Down Expand Up @@ -244,7 +242,7 @@ class _detailPageState extends State<detailPage> {
if (!userSnapshot.hasData) {
return const Text('Something went wrong');
}
bool _favoriteButtonPressed = widget.likedStatus;
bool _favoriteButtonPressed = false;

var b = userSnapshot.data!['favorites'];
var list = [];
Expand Down

0 comments on commit 88bf5d3

Please sign in to comment.