
這就是我所擁有的
Positioned(
bottom: 15,
child: InkWell(
onTap: () {},
child: Material(
type: MaterialType.circle,
color: Color(0xFF246DE9),
child: Padding(
padding: const EdgeInsets.all(24),
child: Text(
'GO',
style: TextStyle(
fontSize: 25,
color: Colors.white,
),
),
),
),
),
),
Positioned(
bottom: 30,
child: CustomPaint(
size: Size(50, 50),
painter: CirclePainter(),
),
),
圓圈畫家
class CirclePainter extends CustomPainter {
final _paint = Paint()
..color = Colors.white
..strokeWidth = 2
..style = PaintingStyle.stroke;
@override
void paint(Canvas canvas, Size size) {
canvas.drawOval(
Rect.fromLTWH(0, 0, size.width, size.height),
_paint,
);
}
@override
bool shouldRepaint(CustomPainter oldDelegate) => false;
}

我創建了一個堆疊,并嘗試將白色圓圈和“GO”按鈕堆疊在一起,但我不知道如何創建該影片。白色圓圈的大小需要逐漸增加,它必須變得不可見。
任何人都可以幫忙嗎?
uj5u.com熱心網友回復:
我準備了一個漣漪課程。靈感來自
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/487463.html
