Positioned
Точно позиционирует ребёнка внутри Stack.
Сигнатура
Positioned({double? top, double? right, double? bottom, double? left, double? width, double? height, required Widget child})Работает только внутри Stack. Задаёт смещение ребёнка от краёв через top, right, bottom, left. Можно указать и размеры width/height. Конструктор Positioned.fill() растягивает ребёнка на весь стек.
Stack(
children: [
Positioned(
bottom: 16,
right: 16,
child: FloatingActionButton(onPressed: () {}, child: Icon(Icons.add)),
),
],
)