Skip to content

Commit

Permalink
fix broken code and successfully migrated to Flutter 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-which-qp committed Jul 18, 2021
1 parent 0a29062 commit 766552a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ndole/bond_app/lib/screens/add_partner.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:bond_app/utils/default_button.dart';
import 'package:bond_app/utils/firebase_user_call.dart';
// import 'package:bond_app/utils/firebase_user_call.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
Expand All @@ -10,6 +10,7 @@ class AddPartnerScreen extends StatefulWidget {
}

class _AddPartnerScreenState extends State<AddPartnerScreen> {
final FirebaseAuth _auth = FirebaseAuth.instance;
@override
Widget build(BuildContext context) {
return Scaffold(
Expand All @@ -36,7 +37,7 @@ class _AddPartnerScreenState extends State<AddPartnerScreen> {
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(80),
image: DecorationImage(
image: NetworkImage(userImage().toString()),
image: NetworkImage('${_auth.currentUser!.photoURL}'),
fit: BoxFit.cover,
),
),
Expand Down

0 comments on commit 766552a

Please sign in to comment.