l10n: typography fixes for arabic/persian
This commit is contained in:
parent
b4af217d43
commit
d8193584b1
1 changed files with 13 additions and 9 deletions
|
@ -1,5 +1,6 @@
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
|
import 'package:aves/widgets/common/basic/link_chip.dart';
|
||||||
import 'package:aves/widgets/common/identity/aves_filter_chip.dart';
|
import 'package:aves/widgets/common/identity/aves_filter_chip.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
|
@ -72,19 +73,22 @@ class InfoRowGroup extends StatefulWidget {
|
||||||
}) {
|
}) {
|
||||||
return (context, key, value) {
|
return (context, key, value) {
|
||||||
value = linkText(context);
|
value = linkText(context);
|
||||||
// open link on tap
|
|
||||||
final recognizer = TapGestureRecognizer()..onTap = () => onTap(context);
|
|
||||||
// `colorScheme.secondary` is overridden upstream as an `ExpansionTileCard` theming workaround,
|
// `colorScheme.secondary` is overridden upstream as an `ExpansionTileCard` theming workaround,
|
||||||
// so we use `colorScheme.primary` instead
|
// so we use `colorScheme.primary` instead
|
||||||
final linkColor = Theme.of(context).colorScheme.primary;
|
final linkColor = Theme.of(context).colorScheme.primary;
|
||||||
final style = InfoRowGroup.valueStyle.copyWith(
|
|
||||||
color: linkColor,
|
|
||||||
decoration: TextDecoration.underline,
|
|
||||||
decorationColor: linkColor,
|
|
||||||
decorationStyle: TextDecorationStyle.solid,
|
|
||||||
);
|
|
||||||
|
|
||||||
return [TextSpan(text: '${Unicode.FSI}$value${Unicode.PDI}', style: style, recognizer: recognizer)];
|
return [
|
||||||
|
WidgetSpan(
|
||||||
|
child: LinkChip(
|
||||||
|
text: value,
|
||||||
|
color: linkColor,
|
||||||
|
textStyle: InfoRowGroup.valueStyle,
|
||||||
|
// open link on tap
|
||||||
|
onTap: () => onTap(context),
|
||||||
|
),
|
||||||
|
alignment: PlaceholderAlignment.middle,
|
||||||
|
),
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue