title: Flutter - How to pass profile picture and name data to drawer from login screen
body: <p>I am new to flutter and facing issue in passing data of profile picture and name from login screen to main screen drawer.please help.Thanks in advance.</p>
  
  <pre><code>var graphResponse = await http.get(           'https://graph.facebook.com/v2.12/me?fields=name,first_name,last_name,email,picture.height(200)&amp;access_token=${facebookLoginResult.accessToken.token}');
  
  var profile = json.decode(graphResponse.body);
  
    onLoginStatusChanged(true, profileData: profile);
  </code></pre>
  
  <p>i can get profile image through  </p>
  
  <pre><code> profileData['picture']['data']['url']
  </code></pre>
  
  <p>and name using </p>
  
  <pre><code>profileData['name']
  </code></pre>
  
  <p>I want to show this image and profile picture in drawer in another screen named <code>main.dart</code>
  <img src="https://i.stack.imgur.com/HasEh.png" alt="image of main screen shown here"></p>