color: Colors.yellow
),
child:
Text(“rotate”),
),
),
Text(“演示用”)
],
)
),
Padding(
padding: EdgeInsets.only(
top: 20.0
),
child: DecoratedBox(
decoration: BoxDecoration(
color: Colors.red
),
child: Transform.scale(
scale: 1.5,
child: Text(“scale”),
),
),
),
Row(
children: [
Padding(
padding: EdgeInsets.only(
top: 20.0
),
child: DecoratedBox(
decoration: BoxDecoration(
color: Colors.red
),
child: RotatedBox(
quarterTurns: 1,
child: Text(“RotatedBox”),
),
),
),
Text(“演示用”)
],
)
],
)
)
)
);
}
}
2.解释源代码
import ‘package:flutter/material.d