notification.dart 512 B

123456789101112131415161718192021222324
  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. }