Positioned Widget
Project Preview
- Interested in seeing the live demo? Click here to explore.
- Want to view the source code? Visit the project on GitHub.
Code Snippet
import 'package:flutter/material.dart';
class PositionedWidget extends StatelessWidget {
const PositionedWidget({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Positioned Widget"),
),
body: Center(
child: Stack(
children: [
Positioned(
left: 20,
top: 20,
child: Image.network(
'https://tinyurl.com/yc4pctt5',
width: 250,
),
),
Positioned(
left: 60,
top: 120,
child: Image.network(
'https://tinyurl.com/22yj4f66',
width: 250,
),
),
Positioned(
left: 100,
top: 220,
child: Image.network(
'https://tinyurl.com/5n97bfvp',
width: 250,
),
),
],
),
),
);
}
}