mirror of
https://github.com/Livinglist/Hacki.git
synced 2025-08-06 18:24:42 +08:00

* bumped version. * fixed web analyzer. * improved comments loading mechanism. * fixed delete all button. * improved reply box logic. * improved web analyzer. * allow users to sort comments. * fixed styles. * fixed bugs. * bumped version. * fixed comments cubit. * fixed dead comments.
36 lines
941 B
Dart
36 lines
941 B
Dart
import 'package:flutter_linkify/flutter_linkify.dart';
|
|
import 'package:hacki/models/comment.dart';
|
|
import 'package:hacki/models/models.dart';
|
|
|
|
class BuildableComment extends Comment {
|
|
BuildableComment({
|
|
required super.id,
|
|
required super.time,
|
|
required super.parent,
|
|
required super.score,
|
|
required super.by,
|
|
required super.text,
|
|
required super.kids,
|
|
required super.dead,
|
|
required super.deleted,
|
|
required super.level,
|
|
required this.elements,
|
|
});
|
|
|
|
BuildableComment.fromComment(Comment comment, {required this.elements})
|
|
: super(
|
|
id: comment.id,
|
|
time: comment.time,
|
|
parent: comment.parent,
|
|
score: comment.score,
|
|
by: comment.by,
|
|
text: comment.text,
|
|
kids: comment.kids,
|
|
dead: comment.dead,
|
|
deleted: comment.deleted,
|
|
level: comment.level,
|
|
);
|
|
|
|
final List<LinkifyElement> elements;
|
|
}
|