notification.dart 510 B

12345678910111213141516171819202122
  1. import 'package:flutter/material.dart';
  2. import 'package:sport/bean/comment.dart';
  3. class CommentNotification extends Notification {
  4. static const int TYPE_DEL = -1;
  5. static const int TYPE_ADD = 1;
  6. final Comment comment;
  7. final int type;
  8. CommentNotification(this.comment, this.type);
  9. }
  10. class CommentInputNotification extends Notification {
  11. final Comment comment;
  12. CommentInputNotification(this.comment);
  13. }
  14. class ScrollToBottomNotification extends Notification {
  15. ScrollToBottomNotification();
  16. }