mem_header.dart 793 B

12345678910111213141516171819202122232425
  1. import 'package:flutter/material.dart';
  2. class MemHeader extends StatelessWidget {
  3. @override
  4. Widget build(BuildContext context) {
  5. return Container(
  6. alignment: Alignment.center,
  7. padding: const EdgeInsets.symmetric(vertical: 40.0),
  8. decoration: BoxDecoration(
  9. gradient: LinearGradient(colors: [Colors.pink[300], Colors.blue[200]], begin: Alignment.topLeft, end: Alignment.bottomRight),
  10. ),
  11. child: Column(
  12. children: <Widget>[
  13. ClipOval(
  14. child: Image.asset('images/avatar.jpg', width: 100.0, height: 100.0),
  15. ),
  16. Padding(
  17. padding: const EdgeInsets.all(8.0),
  18. child: Text('Kuky_xs', style: TextStyle(color: Colors.black, fontSize: 18.0)),
  19. )
  20. ],
  21. ),
  22. );
  23. }
  24. }