Skip to content

Commit

Permalink
feat: Improve KP tables layout (openfoodfacts#6080)
Browse files Browse the repository at this point in the history
* Improve KP tables

* Cache horizontalDivider

* Some comments

* Improvements for dropdown

* no message
  • Loading branch information
g123k authored Dec 29, 2024
1 parent 2547fc9 commit f53938c
Show file tree
Hide file tree
Showing 2 changed files with 280 additions and 78 deletions.
15 changes: 15 additions & 0 deletions packages/smooth_app/lib/helpers/html_extension.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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';
}
}
}
Loading

0 comments on commit f53938c

Please sign in to comment.