Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class HomeScreen extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text("Stack"),
- centerTitle: true,
- ),
- body: Center(
- child: Stack(
- fit: StackFit.expand,
- alignment: AlignmentDirectional.bottomEnd,
- children: [
- // Container(
- // height: 200,
- // width: 200,
- // color: Colors.pink,
- // ),
- // Positioned(
- // right: 10,
- // bottom: 10,
- // child: Container(
- // height: 50,
- // width: 50,
- // color: Colors.yellow,
- // ),
- // ),
- CircleAvatar(
- radius: 50,
- child: Icon(
- Icons.supervised_user_circle,
- size: 30,
- )),
- Positioned(
- bottom: 5,
- right: 10,
- child: CircleAvatar(
- backgroundColor: Colors.green, child: Icon(Icons.edit)),
- )
- ],
- ),
- ));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement