info(String choice) async {
print(choice);
if (choice == 'Created on') {
print('hii');
StorageReference imageRef = storageRef.child(imageLocation);
await imageRef
.getMetadata()
.then((value) => print(value.creationTimeMillis));
int created = 3;
String create = timeago.format(
DateTime.fromMillisecondsSinceEpoch(created),
);
print(create);
}
Scaffold.of(context).showSnackBar(
SnackBar(
content: Text(" hiii"),
),
);
}
我已经使用了这种方法,但它似乎不起作用如果上面的方法是什么