Skip to content

Commit

Permalink
Merge branch 'fix_rtl_initiation_flicker' of https://github.com/verte…
Browse files Browse the repository at this point in the history
…x-ly/pluto_grid into vertex-ly-fix_rtl_initiation_flicker
  • Loading branch information
bosskmk committed Nov 29, 2022
2 parents 52fd10a + a574d32 commit 8874b89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/pluto_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,10 @@ class PlutoGridLayoutDelegate extends MultiChildLayoutDelegate {
final TextDirection _textDirection;

PlutoGridLayoutDelegate(this._stateManager, this._textDirection)
: super(relayout: _stateManager.resizingChangeNotifier);
: super(relayout: _stateManager.resizingChangeNotifier){
// set textDirection before the first frame is laid-out
_stateManager.setTextDirection(_textDirection);
}

@override
void performLayout(Size size) {
Expand Down Expand Up @@ -1175,7 +1178,6 @@ class PlutoGridLayoutDelegate extends MultiChildLayoutDelegate {

void _performLayoutOnPostFrame(Size size) {
bool update = false;

if (_stateManager.showFrozenColumn !=
_stateManager.shouldShowFrozenColumns(size.width)) {
update = true;
Expand Down

0 comments on commit 8874b89

Please sign in to comment.