mirror of
https://github.com/openfoodfacts/smooth-app.git
synced 2025-08-06 18:25:11 +08:00

* Improve KP tables * Cache horizontalDivider * Some comments * Improvements for dropdown * no message
16 lines
341 B
Dart
16 lines
341 B
Dart
import 'package:flutter/widgets.dart';
|
|
|
|
extension AlignmentDirectionalExtension on AlignmentDirectional {
|
|
String toHTMLTextAlign() {
|
|
if (start == -1.0) {
|
|
return 'start';
|
|
} else if (start == 0.0) {
|
|
return 'center';
|
|
} else if (start == 1.0) {
|
|
return 'end';
|
|
} else {
|
|
return 'match-parent';
|
|
}
|
|
}
|
|
}
|