Commit b13e7f74 authored by Budi Prasetyo's avatar Budi Prasetyo

int jadi string untuk date

parent e8d91351
...@@ -10,14 +10,14 @@ class Dashboard4 extends StatefulWidget { ...@@ -10,14 +10,14 @@ class Dashboard4 extends StatefulWidget {
} }
class MessageUser { class MessageUser {
int id; String date;
String name; String name;
String email; String email;
String message; String message;
String number; String number;
MessageUser( MessageUser(
this.id, this.date,
this.name, this.name,
this.email, this.email,
this.message, this.message,
...@@ -27,12 +27,12 @@ class MessageUser { ...@@ -27,12 +27,12 @@ class MessageUser {
class _Dashboard4State extends State<Dashboard4> { class _Dashboard4State extends State<Dashboard4> {
List<MessageUser> ListMessage = <MessageUser>[ List<MessageUser> ListMessage = <MessageUser>[
MessageUser(1, "Jay", 'email', 'message', 'number'), MessageUser("1", "Jay", 'email', 'message', 'number'),
MessageUser(2, 'nama', 'email', 'message', 'nomer'), MessageUser('2', 'Rizky', 'email', 'message', 'nomer'),
MessageUser(1, "Jay", 'email', 'message', 'number'), MessageUser('1', "Arham", 'email', 'message', 'number'),
MessageUser(2, 'nama', 'email', 'message', 'nomer'),MessageUser(1, "Jay", 'email', 'message', 'number'), MessageUser('2', 'Faid', 'email', 'message', 'nomer'),MessageUser('1', "Bagas", 'email', 'message', 'number'),
MessageUser(2, 'nama', 'email', 'message', 'nomer'),MessageUser(1, "Jay", 'email', 'message', 'number'), MessageUser('2', 'Fikri', 'email', 'message', 'nomer'),MessageUser('1', "Budi", 'email', 'message', 'number'),
MessageUser(2, 'nama', 'email', 'message', 'nomer'), MessageUser('2', 'Fahrur', 'email', 'message', 'nomer'),
]; ];
@override @override
...@@ -94,7 +94,7 @@ class _Dashboard4State extends State<Dashboard4> { ...@@ -94,7 +94,7 @@ class _Dashboard4State extends State<Dashboard4> {
// header :Text("Data Message User"), // header :Text("Data Message User"),
columnSpacing: 150, columnSpacing: 150,
columns: [ columns: [
DataColumn(label: Text("ID"),), DataColumn(label: Text("Date"),),
DataColumn(label: Text("Name"),), DataColumn(label: Text("Name"),),
DataColumn(label: Text("Email"),), DataColumn(label: Text("Email"),),
DataColumn(label: Text("Message"),), DataColumn(label: Text("Message"),),
...@@ -131,7 +131,7 @@ class UserDataTableSource extends DataTableSource { ...@@ -131,7 +131,7 @@ class UserDataTableSource extends DataTableSource {
return DataRow.byIndex( return DataRow.byIndex(
index: index, index: index,
cells: <DataCell>[ cells: <DataCell>[
DataCell(Text('${_user.id}')), DataCell(Text('${_user.date}')),
DataCell(Text('${_user.name}')), DataCell(Text('${_user.name}')),
DataCell(Text('${_user.email}')), DataCell(Text('${_user.email}')),
DataCell(Text('${_user.message}')), DataCell(Text('${_user.message}')),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment