我正在尝试为登录页面做这个特殊的设计。
但我得到的结果如下:
我尝试的代码是:
Stack(
fit: StackFit.passthrough,
children: [
Container(height: 2, color: Colors.grey),
Positioned(
child: Center(
child: Transform.rotate(
alignment: Alignment.center,
angle: 45,
child: Container(
height: 18,
width: 18,
color: colorController.primaryColor.value,
),
),
),
),
],
),