title: How to display text in flutter from a text file which is in Firebase?
body: <p>My question is pretty much the same as this: <a href="https://stackoverflow.com/questions/51117119/displaying-text-from-a-text-file-on-firebase-storage">Displaying text from a text-file on Firebase storage</a>   </p>
  
  <p>Only I want to do it in flutter and I have tried so many things. So basically I created a <code>futurebuilder</code>, <code>future</code> is the <code>getDownloadUrl</code>. Up to this point, it's okay.  </p>
  
  <p>So moving on.  </p>
  
  <p>First, I tried nesting another <code>FutureBuilder</code>, where <code>future</code> is an <code>http</code> request to the url. The <code>future</code> does not have any data. I had my shiny little red box all the time, from the else clause of <code>if(snapshot.hasData()){....}else{my redbox}</code>.  </p>
  
  <p>Then I tried a stateful widget where I have the text as <code>loading...</code> and in the <code>then()</code> clause of the <code>get</code> request I called <code>setState</code> with updating the text to the response body. It also doesn't have any data.  </p>
  
  <p>The link is for sure 100% correct, tried it in python, in browser and the best part.... Tried it in a separate dart file. It printed the correct data. Then I imported it in my <code>flutter</code> app, called the function, and nothing happens. I just don't get it. Sorry for the messy question but I'm starting to give up. I like challenges in programming, but only if it has a reason to go bad and i can find that reason.</p>