mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Add like button on group page
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import 'package:comunic/enums/likes_type.dart';
|
||||
import 'package:comunic/models/like_element.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'group.dart';
|
||||
@ -6,12 +8,12 @@ import 'group.dart';
|
||||
///
|
||||
/// @author Pierre Hubert
|
||||
|
||||
class AdvancedGroupInfo extends Group {
|
||||
class AdvancedGroupInfo extends Group implements LikeElement {
|
||||
final int timeCreate;
|
||||
final String description;
|
||||
final String url;
|
||||
final int numberLikes;
|
||||
final bool isLiking;
|
||||
int likes;
|
||||
bool userLike;
|
||||
|
||||
AdvancedGroupInfo({
|
||||
@required int id,
|
||||
@ -27,8 +29,8 @@ class AdvancedGroupInfo extends Group {
|
||||
@required this.timeCreate,
|
||||
@required this.description,
|
||||
@required this.url,
|
||||
@required this.numberLikes,
|
||||
@required this.isLiking,
|
||||
@required this.likes,
|
||||
@required this.userLike,
|
||||
}) : super(
|
||||
id: id,
|
||||
name: name,
|
||||
@ -40,4 +42,7 @@ class AdvancedGroupInfo extends Group {
|
||||
postCreationLevel: postCreationLevel,
|
||||
virtualDirectory: virtualDirectory,
|
||||
following: following);
|
||||
|
||||
@override
|
||||
LikesType likeType = LikesType.GROUP;
|
||||
}
|
||||
|
Reference in New Issue
Block a user