implemented the Ticker module with a native ProseMirror document renderer and integrated API support for structured content, navigation trees, and proxied files
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
import '../../../../../api/marianumconnect/queries/get_ticker/get_ticker_response.dart';
|
||||
import '../../../../../api/marianumconnect/queries/get_ticker_nav/get_ticker_nav_response.dart';
|
||||
|
||||
part 'ticker_state.freezed.dart';
|
||||
part 'ticker_state.g.dart';
|
||||
|
||||
/// Hydrated ticker module state: the current "Aktuelles" post plus the filtered
|
||||
/// page tree. Page contents are loaded on demand in the detail screen and are
|
||||
/// deliberately not cached here.
|
||||
@freezed
|
||||
abstract class TickerState with _$TickerState {
|
||||
const factory TickerState({TickerResponse? ticker, TickerNavResponse? nav}) =
|
||||
_TickerState;
|
||||
|
||||
factory TickerState.fromJson(Map<String, dynamic> json) =>
|
||||
_$TickerStateFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user