Advertisement
narimetisaigopi

Untitled

Mar 12th, 2022
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class HomeScreen extends StatelessWidget {
  4. @override
  5. Widget build(BuildContext context) {
  6. return Scaffold(
  7. appBar: AppBar(
  8. title: Text("Stack"),
  9. centerTitle: true,
  10. ),
  11. body: Center(
  12. child: Stack(
  13. fit: StackFit.expand,
  14. alignment: AlignmentDirectional.bottomEnd,
  15. children: [
  16. // Container(
  17. // height: 200,
  18. // width: 200,
  19. // color: Colors.pink,
  20. // ),
  21. // Positioned(
  22. // right: 10,
  23. // bottom: 10,
  24. // child: Container(
  25. // height: 50,
  26. // width: 50,
  27. // color: Colors.yellow,
  28. // ),
  29. // ),
  30. CircleAvatar(
  31. radius: 50,
  32. child: Icon(
  33. Icons.supervised_user_circle,
  34. size: 30,
  35. )),
  36. Positioned(
  37. bottom: 5,
  38. right: 10,
  39. child: CircleAvatar(
  40. backgroundColor: Colors.green, child: Icon(Icons.edit)),
  41. )
  42. ],
  43. ),
  44. ));
  45. }
  46. }
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement