mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Show post visibility levels
This commit is contained in:
@ -1,5 +1,15 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// Post visibility level
|
||||
///
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
enum PostVisibilityLevel { PUBLIC, FRIENDS, USER, GROUP_MEMBERS }
|
||||
|
||||
/// Post visibility levels mapping with material icons
|
||||
const PostVisibilityLevelsMapIcons = {
|
||||
PostVisibilityLevel.USER: Icons.lock,
|
||||
PostVisibilityLevel.FRIENDS: Icons.group,
|
||||
PostVisibilityLevel.GROUP_MEMBERS: Icons.group,
|
||||
PostVisibilityLevel.PUBLIC: Icons.public
|
||||
};
|
||||
|
Reference in New Issue
Block a user