Skip to content

Commit

Permalink
Merge pull request #78 from praveenkrishna0512/minor-edits
Browse files Browse the repository at this point in the history
Minor edits
  • Loading branch information
summerthia02 authored Jul 19, 2022
2 parents 46e4685 + 5ff01ab commit f0e3ca1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 42 deletions.
3 changes: 1 addition & 2 deletions lib/models/ListingCard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ class _ListingCardState extends State<ListingCard> {
children: [
CircleAvatar(
radius: 11,
backgroundImage:
NetworkImage(widget.snap['profImageUrl'].toString()),
backgroundImage: NetworkImage(widget.snap['imageUrl'].toString()),
),
const SizedBox(
width: 10,
Expand Down
2 changes: 1 addition & 1 deletion lib/models/enlarged_listing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class _PostedByState extends State<PostedBy> {
padding: EdgeInsets.all(10),
child: Row(children: <Widget>[
ProfileWidget(
imageUrl: widget.snap["profImageUrl"],
imageUrl: widget.snap["imageUrl"],
onClicked: () => {},
),
SizedBox(
Expand Down
9 changes: 2 additions & 7 deletions lib/pages/edit_profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,8 @@ class _EditProfilePageState extends State<EditProfilePage> {
backgroundImage: MemoryImage(_image!),
)
: CircleAvatar(
backgroundColor: Colors.white,
radius: 70,
child: ClipRRect(
borderRadius: BorderRadius.zero,
child: Image.asset('images/def_dp.png',
width: 250, height: 200),
),
radius: 60,
backgroundImage: NetworkImage(userData.imageUrl!),
),
Positioned(
bottom: -10,
Expand Down
35 changes: 3 additions & 32 deletions lib/pages/favourites.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:justsharelah_v1/utils/appbar.dart';
import 'package:justsharelah_v1/utils/const_templates.dart';
import 'package:justsharelah_v1/models/ListingCard.dart';
import 'package:justsharelah_v1/models/enlarged_listing.dart';
Expand All @@ -25,14 +26,8 @@ class _FavouritesState extends State<Favourites> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: IconButton(
icon: const Icon(Icons.arrow_back_rounded),
onPressed: () {
Navigator.pop(context);
},
),
),
appBar:
MyAppBar().buildAppBar(const Text("Favourites"), context, '/feed'),
body:
ListView(padding: const EdgeInsets.all(defaultPadding), children: [
Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
Expand Down Expand Up @@ -119,30 +114,6 @@ class _FavouritesState extends State<Favourites> {
),
)),
);

// // print("going to cast listing data");

// // return Row(
// // crossAxisAlignment: CrossAxisAlignment.start,
// // children: List.generate(
// // listingData.length,
// // (index) => Padding(
// // padding: const EdgeInsets.only(right: defaultPadding),
// // child: ListingCard(
// // image: listingData[index].imageUrl,
// // title: listingData[index].title,
// // price: listingData[index].price,
// // press: () {
// // Navigator.push(
// // context,
// // MaterialPageRoute(
// // builder: (context) => EnlargedScreen(
// // listing: listingData[index]),
// // ));
// // },
// ),
// ),
// ));
},
)
]));
Expand Down

0 comments on commit f0e3ca1

Please sign in to comment.