ROOMS
This commit is contained in:
parent
65028a1231
commit
aaeee8e355
10 changed files with 527 additions and 164 deletions
|
|
@ -1,10 +1,14 @@
|
|||
import "package:flutter/widgets.dart";
|
||||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
import "package:matrix/matrix.dart";
|
||||
import "package:nexus/models/full_room.dart";
|
||||
part "space.freezed.dart";
|
||||
|
||||
@freezed
|
||||
abstract class Space with _$Space {
|
||||
const factory Space({required Room roomData, required Image? avatar}) =
|
||||
_Space;
|
||||
const factory Space({
|
||||
required String title,
|
||||
required Widget? avatar,
|
||||
required List<FullRoom> children,
|
||||
@Default(false) bool fake,
|
||||
}) = _Space;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue