Skip to content

Commit

Permalink
FEAT: create search screen
Browse files Browse the repository at this point in the history
아직 미완
  • Loading branch information
Pjunn committed Sep 23, 2022
1 parent 33e24f1 commit 8b2cea9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/page/search_page/search_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
import 'package:cafegation/page/detail_page/detailPage.dart';
import 'package:cafegation/services/database.dart';
import 'package:cafegation/page/list_page/CafeItem.dart';

class SearchScreen extends StatefulWidget {
_SearchScreenState createState() => _SearchScreenState();
Expand Down Expand Up @@ -52,6 +53,8 @@ class _SearchScreenState extends State<SearchScreen> {

Widget _buildListItem(BuildContext context, DocumentSnapshot data) {
final cafe = DataBaseService.instance.cafeBuilder(data);


return InkWell(
child: Image.network(cafe.images),
// onTap: () {
Expand All @@ -67,6 +70,7 @@ class _SearchScreenState extends State<SearchScreen> {
MaterialPageRoute(
builder: (context) => detailPage(
cafeName: cafe.name,
likedStatus: cafe.
)),
);
},
Expand Down

0 comments on commit 8b2cea9

Please sign in to comment.