mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-13 12:50:10 +08:00
committed by
GitHub
parent
1c19925b58
commit
199ad274b7
@@ -37,7 +37,9 @@ import 'package:flutter/rendering.dart'
|
||||
BoxHitTestEntry,
|
||||
ContainerParentDataMixin,
|
||||
InformationCollector,
|
||||
DiagnosticsDebugCreator;
|
||||
DiagnosticsDebugCreator,
|
||||
RenderObjectVisitor,
|
||||
SemanticsConfiguration;
|
||||
|
||||
/// ref [LayoutBuilder]
|
||||
|
||||
@@ -250,6 +252,23 @@ class RenderImageGrid extends RenderBox
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
void visitChildrenForSemantics(RenderObjectVisitor visitor) {
|
||||
RenderBox? child = firstChild;
|
||||
while (child != null) {
|
||||
visitor(child);
|
||||
child = (child.parentData as MultiChildLayoutParentData).nextSibling;
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void describeSemanticsConfiguration(SemanticsConfiguration config) {
|
||||
super.describeSemanticsConfiguration(config);
|
||||
config
|
||||
..explicitChildNodes = true
|
||||
..isSemanticBoundary = true;
|
||||
}
|
||||
|
||||
@override
|
||||
bool get isRepaintBoundary => true; // gif repaint
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user