Line data Source code
1 : // Copyright 2023 The terCAD team. All rights reserved.
2 : // Use of this source code is governed by a CC BY-NC-ND 4.0 license that can be found in the LICENSE file.
3 :
4 : import 'package:app_finance/_classes/herald/app_design.dart';
5 : import 'package:material_ui/material_ui.dart';
6 :
7 : class TextWidget extends Text {
8 1 : const TextWidget(super.data, {super.key, super.style});
9 :
10 1 : @override
11 1 : String? get semanticsLabel => super.data;
12 :
13 1 : @override
14 : int get maxLines => 1;
15 :
16 1 : @override
17 : TextOverflow get overflow => TextOverflow.ellipsis;
18 :
19 1 : @override
20 1 : TextDirection get textDirection => AppDesign.getAlignment<TextDirection>();
21 : }
|