title: how do I set week interval dates in flutter, like January 3,2019, January 10, 2019, January 17,2019 for 3 months?
body: <p>how do I generate week interval dates in flutter, like January 3,2019, January 10, 2019, January 17,2019  for 3  months?</p>
  
  <pre><code>*This is my code*
  import 'package:flutter/material.dart';
  
  
  class ListPage extends StatefulWidget {
    @override
    _ListPageState createState() =&gt; _ListPageState();
  }
  
  class _ListPageState extends State&lt;ListPage&gt; {
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: new AppBar(
          title: new Text('Repayment Schedule'),
          centerTitle: true,
        ),
        body: getListView('Total Payment', 'Ghs 100'),
      );
    }
  }
  
  List&lt;String&gt; getDateElement() {
  
    var _startingDate = DateTime.now();
  
    DateTime _newDate = _startingDate.add(Duration(days: 7));
    var dates = List&lt;String&gt;.generate(24,(counter)=&gt; "$_newDate");
    return dates;
  }
  
  
  
  List&lt;String&gt; getListElement() {
  
    var item = List&lt;String&gt;.generate(24, (counter)=&gt; "Week $counter");
    return item;
  }
  
  Widget getListView( String totalPmt, String amount,) {
  
    var listItems = getListElement();
    var listDates = getDateElement();
  
    var listView = ListView.builder(
      itemCount: listItems.length,
      itemBuilder: (context, index) {
  
        return Card(
          child: ListTile(
            leading: Text(listItems[index]),
            title: new Text(totalPmt),
            subtitle: Text(amount),
            trailing: Text(listDates[index]),
          ),
        );
      }
    );
  
    return listView;
  }
  </code></pre>
  
  <p>I want something like this <a href="https://i.stack.imgur.com/wAeIr.png" rel="nofollow noreferrer">1</a>,
  I'm getting this instead <a href="https://i.stack.imgur.com/urOOE.jpg" rel="nofollow noreferrer">2</a></p>
  
  <p>how do I get the first result, thank you. I have been trying this for sometime now. i am new to flutter.</p>