Skip to content

Instantly share code, notes, and snippets.

@fabiomsr
Created May 1, 2019 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiomsr/ee1cfdd19c59e0976fc152284f71193a to your computer and use it in GitHub Desktop.
Save fabiomsr/ee1cfdd19c59e0976fc152284f71193a to your computer and use it in GitHub Desktop.
class Timer extends StatelessWidget {
@override
Widget build(BuildContext context) {
return FlatButton(
child: Text("Get time!"),
onPressed: () {
final time = DateTime.now().toIso8601String();
TimeNotification(time: time)..dispatch(context);
},
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment