You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
Dart
29 lines
1.1 KiB
Dart
|
3 years ago
|
import 'package:flutter/cupertino.dart';
|
||
|
|
import 'package:flutter/material.dart';
|
||
|
|
import 'package:mohem_flutter_app/ui/screens/profile/widgets/profile_info.dart';
|
||
|
|
|
||
|
|
class ProfilePanle extends StatelessWidget {
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
double _width = MediaQuery.of(context).size.width;
|
||
|
|
return Container(
|
||
|
|
margin: EdgeInsets.fromLTRB(5, 0, 5, 10),
|
||
|
|
height: MediaQuery.of(context).size.height,
|
||
|
|
child: Stack(children: [
|
||
|
|
Container(
|
||
|
|
width: _width,
|
||
|
|
margin: EdgeInsets.only(top: 50),
|
||
|
|
padding: EdgeInsets.only(top: 50),
|
||
|
|
decoration: BoxDecoration(
|
||
|
|
color: Colors.white,
|
||
|
|
borderRadius: const BorderRadius.only(topLeft: Radius.circular(25), topRight: Radius.circular(25)),
|
||
|
|
boxShadow: [BoxShadow(color: Colors.white60, blurRadius: 10, spreadRadius: 10)]),
|
||
|
|
child: ProfileInFo(),
|
||
|
|
),
|
||
|
|
Container(height: 100, alignment: Alignment.center, child: ProfileImage())
|
||
|
|
]));
|
||
|
|
}
|
||
|
|
|
||
|
|
Widget ProfileImage() => CircleAvatar(radius: 70, backgroundImage: AssetImage('assets/images/user-avatar.png'));
|
||
|
|
}
|