* still in draft * feat(reading_assistance): whole message activity oriented * chore: fix .env file path * feat: animate selected toolbar into middle of screen * chore: initial work for message bubble size animation * refactor(reading_assistance): hooking up the choice interactions and polishing UI * chore: animate in content and buttons * formatting * position reading content relative to selected token * working on limiting choices * chore: fix positioning of toolbar animation * chore: simplify positioning logic * chore: animate in button height * getting there * rough draft with restricted activity number is complete --------- Co-authored-by: ggurdin <ggurdin@gmail.com>
29 lines
682 B
Dart
29 lines
682 B
Dart
import 'package:fluffychat/pangea/events/models/pangea_token_model.dart';
|
|
|
|
class TokenPositionModel {
|
|
/// Start index of the full substring in the message
|
|
final int start;
|
|
|
|
/// End index of the full substring in the message
|
|
final int end;
|
|
|
|
/// Start index of the token in the message
|
|
final int tokenStart;
|
|
|
|
/// End index of the token in the message
|
|
final int tokenEnd;
|
|
|
|
final bool selected;
|
|
final bool hideContent;
|
|
final PangeaToken? token;
|
|
|
|
const TokenPositionModel({
|
|
required this.start,
|
|
required this.end,
|
|
required this.tokenStart,
|
|
required this.tokenEnd,
|
|
required this.hideContent,
|
|
required this.selected,
|
|
this.token,
|
|
});
|
|
}
|