This reverts commit 5fd259be24.
This commit is contained in:
@@ -65,7 +65,7 @@ void main() {
|
||||
textDirection: TextDirection.ltr,
|
||||
);
|
||||
table.add(RenderPadding(child: paragraph, padding: const EdgeInsets.only(top: 20.0)));
|
||||
final RenderFlex row = RenderFlex(textDirection: TextDirection.ltr);
|
||||
final RenderFlex row = RenderFlex(direction: Axis.horizontal, textDirection: TextDirection.ltr);
|
||||
row.add(RenderSolidColorBox(const Color(0xFFFFCCCC), desiredSize: const Size(80.0, 60.0)));
|
||||
row.add(RenderSolidColorBox(const Color(0xFFCCFFCC), desiredSize: const Size(64.0, 60.0)));
|
||||
row.add(RenderSolidColorBox(const Color(0xFFCCCCFF), desiredSize: const Size(160.0, 60.0)));
|
||||
|
||||
@@ -13,6 +13,7 @@ void main() {
|
||||
// The root of our render tree is a RenderPositionedBox, which centers its
|
||||
// child both vertically and horizontally.
|
||||
root: RenderPositionedBox(
|
||||
alignment: Alignment.center,
|
||||
// We use a RenderParagraph to display the text 'Hello, world.' without
|
||||
// any explicit styling.
|
||||
child: RenderParagraph(
|
||||
|
||||
@@ -39,6 +39,7 @@ void main() {
|
||||
);
|
||||
// Finally, we center the spinning green square...
|
||||
final RenderBox root = RenderPositionedBox(
|
||||
alignment: Alignment.center,
|
||||
child: spin,
|
||||
);
|
||||
// and attach it to the window.
|
||||
|
||||
@@ -11,7 +11,7 @@ import '../rendering/src/sector_layout.dart';
|
||||
RenderBoxToRenderSectorAdapter initCircle() {
|
||||
return RenderBoxToRenderSectorAdapter(
|
||||
innerRadius: 25.0,
|
||||
child: RenderSectorRing(),
|
||||
child: RenderSectorRing(padding: 0.0),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user