title: Flutter: How to pass data from one page to another and save it
body: <p>i am new to the whole app development process so please help me out. I am working on a learning app, i have created two pages (the courses page and the my courses page)</p>
  <ol>
  <li><p>the first page shows all the list of courses available. It displays the course description gotten from the api (such as the course code and title) in cards with a button that enables u to add or enroll in the course when tapped.</p>
  </li>
  <li><p>The second one is an empty page that is supposed to show the list of courses the user has enrolled in or added from the course page.</p>
  </li>
  </ol>
  <p>So wat i need help achieving is when a course button is tapped in the courses page (first page)..i want it to add the individual course in the second page (my courses page)</p>