title: how to send id_user to second page
body: <p>i have a problem with sending data to second page, this is my piece of code</p>
  
  <pre><code>Navigator.push(
    context,MaterialPageRoute(
        builder: (BuildContext context) =&gt;ActivityByDate(
          index: date,
          user: _selectedUser)));
  </code></pre>
  
  <p>I want to send the user to the second page (for the date sent to the second page)</p>
  
  <pre><code>    import 'package:flutter_web/material.dart';
  import 'package:retgoo_internal/api/user_controller.dart';
  
  class ActivityByDate extends StatefulWidget {
    final DateTime index;
    final user;
    final List list;
    ActivityByDate({this.index, this.user, this.list});
    @override
    _ActivityByDateState createState() =&gt; _ActivityByDateState();
  }
  
  class _ActivityByDateState extends State&lt;ActivityByDate&gt; {
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar:
            AppBar(title: Text("Activity berdasarkan tanggal"),
            body: _showActivities(),
      );
    }
  
    _showActivities() {
      return FutureBuilder(
        future: UserController.getActivityByDate(
            {"date": widget.index.toIso8601String(), "id" : widget.user}),
        builder: (context, snapshot) {
          if (snapshot.hasData) {
            if (snapshot.data != null){
              print(snapshot.data);
            return ListView.builder(
                itemCount: snapshot.data.length,
                itemBuilder: (context, position) {
                  var item = snapshot.data.elementAt(position);
                  return ListTile(
                    title: Text("${item["activity"]["project"]}"),
                    subtitle: Text(item["created_at"]),
                  );
                });
            }
  
          } 
            return Text("no data displayed");
  
        },
      );
    }
  }
  </code></pre>
  
  <p>how to send users to the second page, why only dates are sent</p>