I want to place Stack inside Stack in flutter, it dosen't work if I change position of inner Stack's positioned widgets.
works:
Stack(
children: [
Positioned(
top: 150.0,
child: Text("Text#1"),
),
Positioned(
top: 100.0,
child: Stack(
children: [
Positioned(
child: Text("Text#2"),
)
],
),
)
],
)
If I add "top: 200.0" inside inner Stack's positioned, inner Stack disappears and flutter throws error
Stack(
children: [
Positioned(
top: 150.0,
child: Text("Text#1"),
),
Positioned(
top: 100.0,
child: Stack(
children: [
Positioned(
top:200.0,
child: Text("Text#2"),
)
],
),
)
],