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:flutter/material.dart'; 6 : 7 : class TextWidget extends Text { 8 0 : const TextWidget(super.data, {super.key}); 9 : 10 0 : @override 11 0 : String? get semanticsLabel => super.data; 12 : 13 0 : @override 14 : int get maxLines => 1; 15 : 16 0 : @override 17 : TextOverflow get overflow => TextOverflow.ellipsis; 18 : 19 0 : @override 20 0 : TextDirection get textDirection => AppDesign.getAlignment<TextDirection>(); 21 : }